Pardon my ignorance, I am a new user of this site, Linux, and the Raspberry Pi.
The following is a link to a question, from which I used user goldilocks' well documented answer of using rsync
, to create my own rsync
command to make a backup to a folder on the HDD of a MacBook Pro on my local network:
Can a Raspberry Pi be used to create a backup of itself?
I was unable to follow up on this question and unable to message the user goldilocks because it seems that there is no such thing on Stack Exchange?
What I came up with is this:
rsync -aHv --rsync-path="sudo rsync" --delete-during --exclude-from=/Users/user/Documents/rsync-exclude.txt --rsh="ssh" user@host:/ /Users/user/Desktop/rpi-backup/
From what I understand the addition of the --rsync-path="sudo rsync"
argument allows for not having to use an (insecure) root account over ssh.
All seems to go well but unfortunately I get an error at the end of the transfer which looks like this:
rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-47/rsync/main.c(1400) [generator=2.6.9]
Is this something I should be worried about and if so how do I fix it? Or, is this because I used a rsync-exluded.txt
file to exclude certain directories from being copied over during the rsync and this error is just confirming this?
Also, it was said by a user who replied to this question that it wouldn't be possible to backup to a Mac? My command seemed to work without problems as there was obviously a backup of the filesystem in the folder which I designated as the destination. The only hitch was the error that I received at the end of the rsync
.
rsync
differ, 2 OS X overlays Unix with its own layer which prevent access to certain directories 3 Unless Users match settings may be lost, 4 Permissions onhfx
andext4
differ significantly. You may be successful in backing up user files, but system files will be lost/lose permissions. – Milliways Feb 22 '16 at 02:18