I have been running my rsync routine on a crontab process for the past couple of months but today I received an error related to lack of space in my root directory. As explained in the title, I have set up a fstab ip file system configuration onto my root specifically onto /mnt and have been running the following code
`0 16-22 * * 6 sudo rsync -avzpEo --delete-delay /home/ /mnt/Rsync_Dell/`
Today, however, I have received the error that my partition was full to the point I could not run anything anymore (used live media to purge files) and found out that my mnt directory was full and clogged my root partition.
My question is how is it possible that I clogged my system if the rsync is sending files to my server? how can I prevent that? should I change the delete-delay to delete-during?
The space dedicated to root is 40 GB whereas the home is 150 GB and the destination server is 750 GB.
rsync
command does not seem to be complete. If it is, then you are rsyncing to some place (whatever the working directory of the cronjob is). – Eduardo Trápani Jun 14 '20 at 20:55du --max-depth 1
to help you narrow down where the files are. There are ways that one process may not be able to see the mount-points you expect, so you might want to unmount/mnt
and double check there's no files stored on/mnt
in the root fs. – Philip Couling Jun 14 '20 at 21:06/etc/fstab
may fail, for example if the computer sharing the remote filesystem was shut down at the time this system was booting up, or afterwards. You might want to make your cron job a script that first reads/proc/mounts
to verify the remote filesystem is actually mounted, and starts thersync
process only if that's true. – telcoM Jun 14 '20 at 22:19