[SOLVED] Mysterious rsync error
I'm trying to create a mirror of my home dir to a remote machine over ssh using rsync. I'm getting these errors:
Code:
rsync: Failed to exec lete: No such file or directory (2) Code:
dmesg | tail Both machines are ubuntu linux, and I'm using ssh keys. I'm using the -c and -delete options w/ rsync. Anyone know what's with this error? Failing that, anyone have any advice for creating this kind of backup? I'm using rsync since it's got that delta transfer algorithm, which sounds perfect for my slow connection. |
Could you let us know the actual rsync command pls?
Cheers |
It was rsync -c -delete /home/kekie/ kekie@remote:/path/to/backup/dir
|
Got it
Quote:
Quote:
Quote:
Quote:
|
Good stuff! What an odd error, I would have expected an 'invalid option -delete'
I'm making progress, now I'm getting a "permission denied (publickey)" I'm trying to figure out how to specify an identity file to rsync like you do with ssh... |
There we go, adding this option fixed they key error:
Code:
-e "ssh -i /path/to/private/key" |
In my opinion you are on the right track. I use this method to back up a number of PCs to my server (which is in turn backed up). If you lose a disk or when you upgrade you have a perfect snapshot of where you were. Maybe other people could contribute but I have a few custom tools set up so I also back up.
Quote:
|
Quote:
Example: if you created an initial backup by this command: Code:
rsync -cr --delete /home/kekie/ kekie@remote:/path/to/first/backup/ Code:
rsync -cr --link-dest=/path/to/first/backup /home/kekie/ kekie@remote:/path/to/second/backup/ Long ago, I developed a bash script based on this idea. It worked fine, and it was educational and fun to write it. I would be glad to advise you on that. However, if you just want to get the backup done, there are backup packages that use rsync behind a nice GUI. Search the web for "backup for linux" if you are interested in that. |
Quote:
|
@rknichols: I see, that makes more sense, thanks!
@Beryllos: I was originally planning on just copying the mirror folder and mirroring to the copy to make incremental backups, but that would waste disk space, as you mentioned. I didn't know rsync had this functionality, thanks! |
All times are GMT -5. The time now is 02:18 PM. |