diff options
| author | grothedev <grothedev@gmail.com> | 2021-07-05 13:10:24 -0500 |
|---|---|---|
| committer | grothedev <grothedev@gmail.com> | 2021-07-05 13:10:24 -0500 |
| commit | 802685c9a2f411150aa6f2d310be93e684479917 (patch) | |
| tree | 515c78a8347fbbecc1680d1e9e1dac962368c6d8 /backup_simple | |
| parent | 7ad82011db8c22a18a5870394e890b2cc15ecc8c (diff) | |
updates
Diffstat (limited to 'backup_simple')
| -rwxr-xr-x | backup_simple | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backup_simple b/backup_simple index a50e22d..2e8ae6a 100755 --- a/backup_simple +++ b/backup_simple @@ -26,9 +26,9 @@ remote_host=`echo $dest | cut -f1 -d':'` #dest_path_dir=`echo $dest | cut -f2 -d':' | sed 's,\(.*\)\/$,\1\/,g'` #directory right above the file/directory of interest dest_path_dir=`echo $dest | sed 's,\(.*\)\/.*,\1\/,g'` #directory right above the file/directory of interest ssh ${remote_host} "mkdir -p ${dest_path_dir}" - -if [[ $(rsync -arvzP -e ssh --update ${src} ${dest} ${rsargs} | grep "%") ]]; then - echo "Complete." -else - echo "!! ${src} not uploaded. Server version is newer." -fi +rsync -arvzP -e ssh --update ${src} ${dest} ${rsargs} >> /var/log/datasync.log +#if [[ TODO "%"` ]]; then +# echo "Complete." +#else +# echo "!! ${src} not uploaded. Server version is newer." +#fi |
