laurent22 / rsync-time-backup

Time Machine style backup with rsync.
3.36k stars 443 forks source link

df: '': No such file or directory #238

Open robcraigfl opened 3 years ago

robcraigfl commented 3 years ago

df: '': No such file or directory error in the log when running the script.

Also is possible to receive a 1 a day email log report for all backups? I have it running as a crontab each hour so I receive a log email every hour.

kalaklanar commented 11 months ago

I just dug in to this, as I was running into the df problem. It comes up when you're backing up the root, "/". If you change it to the equivalent "//" it works. Line 379 strips off the "/" of the SRC_FOLDER. If your're using just "/", then it strips that, leaving an empty string. So the workaround is the "//".

tyriis commented 11 months ago

For email, you can just forward the output(s) to an email cli tool/script, I would not recommend implementing such features. Anyway you should split the feature request into a separate ticket.