Re: bash script date/backups
Hi il pepe.
Here's a few thoughts:
I would use the command 'mountpoint' to check if there's something mount there:
Code:
if mountpoint -q /home/pieter/Mounts/Lacie; then
echo "mounted."
else
echo "not mounted."
fi
As for more complex backups, there are several approaches:
- for differential you can use the option --compare-dest (see here).
- for incremental, you can use the combo --backup and --backup-dir (see here), or use hardlinks (option -h) (see here).
Here's another guide for full and incremental backups using rsync.
Let us know if you need more help with that.
Regards.