fixed rsync_flags in dryrun
This commit is contained in:
parent
1a64435076
commit
d77deaa28e
3
PKGBUILD
3
PKGBUILD
@ -9,7 +9,7 @@ license=('GPL3')
|
||||
depends=('rsync')
|
||||
optdepends=('mkrypt: for encryption')
|
||||
source=(msynk.sh _msynk.compdef.zsh msynk.1.man template)
|
||||
md5sums=(c9fc4a54a7081d0ee3e7c43a636b47c3 8398678146d9f8a5669e8b788502b3b8 d089828a93bf8e4ffd9051d8ea756ab8 492028aa2f08528f1d476376884959b2)
|
||||
md5sums=(30bea7bea4d27d00a4ea49f3431b090f 8398678146d9f8a5669e8b788502b3b8 d089828a93bf8e4ffd9051d8ea756ab8 492028aa2f08528f1d476376884959b2)
|
||||
|
||||
package() {
|
||||
mkdir -p "${pkgdir}/usr/bin"
|
||||
@ -30,3 +30,4 @@ package() {
|
||||
chmod +x "${pkgdir}/usr/share/zsh/site-functions/_msynk"
|
||||
fi
|
||||
}
|
||||
msynk.sh
|
||||
|
2
msynk.sh
2
msynk.sh
@ -79,7 +79,7 @@ sync_sender_to_receiver()
|
||||
echo "" > $TMP_FILE
|
||||
for path in "${filtered_paths[@]}"; do
|
||||
dest_subdir=$receiver$(basename $path)
|
||||
rsync $rsync_flags -v --dry-run --delete $path $dest_subdir | grep deleting | sed "s(deleting (${BACKUP_SUBDIR}/(" >> $TMP_FILE
|
||||
rsync "${rsync_flags[@]}" -v --dry-run --delete $path $dest_subdir | grep deleting | sed "s(deleting (${BACKUP_SUBDIR}/(" >> $TMP_FILE
|
||||
done
|
||||
# print files that will be deleted and ask if continue
|
||||
# grep deleting $TMP_FILE | sed "s(deleting (${receiver}/(" | less
|
||||
|
@ -57,6 +57,11 @@ The $TMP_DIR defaults to /tmp/mksynk and /tmp is usually limited to half the siz
|
||||
You change the $TMP_DIR in the script in /usr/bin/msynk or temporarily increase the size of the tmpfs by running `sudo mount -o remount,size=XXG,noatime /tmp` if your $TMP_DIR is on /tmp and you have at least XXGB memory+swap space.
|
||||
|
||||
## Changelog
|
||||
### 1.2
|
||||
Bugfixes:
|
||||
- rsync_flags are now applied to dryrun
|
||||
- disk usage is correctly obtained for paths with numbers in them
|
||||
|
||||
### 1.1
|
||||
- Added --exclude
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user