using rsync if file size differs
Page 1 of 1
using rsync if file size differs
- Code:
find /mnt/web_backup/* -type f -printf '%s %p\n' | while read size file; do
if [ ! -f /var/www/${file##*/} ] || [ $(find /var/www/${file##*/} -printf "%s") -ne $size ]; then
sudo rsync -av --bwlimit=309714747392 "$file" /var/www/${file##*/}
fi
done
this is for bash on linux
Similar topics
» LINUX MAX FILE UPLOAD SIZE
» md5deep linux file size tools
» Allowing massive file upload sizes in linux apache2 webserver php.ini file edit
» How to fix samba in linux file missing config file error
» My Bashrc File For Logging IP Changes
» md5deep linux file size tools
» Allowing massive file upload sizes in linux apache2 webserver php.ini file edit
» How to fix samba in linux file missing config file error
» My Bashrc File For Logging IP Changes
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum