2020-01-30
Backup to a remote webdav server, first success!
I found a completely different option for transferring files from linux to a remote webdav filesystem: fusedav. Mounting the remote 'cloud' disk with fusedav and synchronizing files with rsync is starting to work. I decided to split my backups into two categories: first there are file collections that usually only grow, like digital camera pictures and audio project files. This takes the most diskspace and doesn't really need versioning. The second category is configuration files, homedirs, mail and other things that change and where I may need an older version. This is where backups based on amanda work better. I mount the filesystem with:$ fusedav -u koos -p topsecret https://webdav.cloudprovider/remote.php/webdav/ /home/koos/webdavmount/And the rsync command to backup to this mount:$ rsync -av --progress --bwlimit=512K --size-only --timeout=30 /camera/2003/ webdavmount/camera/2003/This looks scriptable so it can run on a regular basis with just a status update to me. Update:
Reliability is still an issue. I added the --timeout=30 parameter to make rsync abort when the bytes stop flowing. Update 2020-03-10:
And it's done, all camera pictures are now in an offsite backup. Yes, about 5 weeks later! I updated the command to run in loops whenever a timeout occured:KEEP=1 while [ $KEEP -eq 1 ]; do rsync -av --progress --bwlimit=200K --size-only --timeout=30 --delete /camera/ webdavmount/camera/ if [ $? -ne 30 ]; then KEEP=0 fi done