I am creating a bash script to backup my files using rsync.
Backups consist of one directory. I want new or changed files to be copied.
I am currently talking to rsync to backup the directory and check the files compared to the last backup.
How am i doing this
THE_TIME=`date "+%Y-%m-%dT%H:%M:%S"` rsync -aP --link-dest=/Backup/Current /usr/home/user/backup /Backup/Backup-$THE_TIME rm -f /Backup/Current ln -s /Backup/Backup-$THE_TIME /Backup/Current
I am sure I have the syntax for this. Each backup will check the Current folder and download only as needed. He will then delete the current folder and re-create a symbolic link to the newest backup that she just made.
I get an error when running the script:
rsync: link "/Backup/Backup-2010-08-04-12:21:15/dgs1200series_manual_310.pdf"
=> /Backup/Current/dgs1200series_manual_310.pdf failed: operation is not supported (45)
The host operating system runs the HFS file system, which supports tight binding. I am trying to find out if something else does not support this, or if I have a problem in my code.
Thanks for any help
Edit:
I can create a hard link on my local machine. I can also create a hard link on a remote server (when logging in locally) I can NOT create a hard link on a remote server when installing via afp. Even if both files exist on the server.
I assume this is a limitation of afp.
source share