diff --git a/PKGBUILD b/PKGBUILD index a891dbc..8728bc9 100644 --- a/PKGBUILD +++ b/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 diff --git a/msynk.sh b/msynk.sh index eef8941..5623e37 100755 --- a/msynk.sh +++ b/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 diff --git a/readme.md b/readme.md index e071d1e..b3a7007 100644 --- a/readme.md +++ b/readme.md @@ -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