I just tried a bit more to understand whats going on, and I must admit I am not sure...
The backup that is failing is due to the destination drive getting filled up. I am performing several other backups with the same strategy, both in my server and in my other machines. All are
now working fine thanks to your help here!
Using a backup that is wiorking perfectly:
Source: /mnt/media-storage
Destination: /mnt/backup-media-storage
The source (/mnt/media-storage) contains *thousands* of files and folders with spaces in their file names. Most of these files are from both Mac & Windowz users. No nomenclature and naming standards whatsoever. The backup proceeds and finish without problems. du -hs and df -H are both reporting the source and destination are exactly same size.
Now to the backup that is eluding me:
Source: /mnt/mass-storage
Destination: /mnt/backup-mass-storage
The source is (according to du -hs) around 100GB. The source contains also thousands of files and folders, most of them coming from windows machines, they have spaces, underscores, dots (.) and other characters in their file names.
There is no mount points, links or other black magic that would make a folder size increase when copied. Just a plain file tree.
This backup is running as we speak. tail -f on the rsnapshot log does not report anything strange. The destination drive (250GB) is almost full (81% full = 203GB) and keep increasing... Absurd.
For some obscure reasons, rsync freaks with my files & folders that are in the source (/mnt/mass-storage) and goes wild.
cp -r successfully copied the content of the source to another locations without problems. Result was exacly same size, as I would expect from rsync.
Quote:
When the source path contains spaces then enclose the entire source path in quotation marks. For the destination be sure the path ends with a slash.
|
The source path has no spaces. Like I said, I cant guarantee every files & folders in my computers do not have spaces in their filenames, and it would be ridiculous to do so. The destination has a trailing slash as you can see in my conf file below:
Code:
# Mass storage (temp drive) backup rsnapshot config file
config_version 1.2
snapshot_root /mnt/backup-mass-storage
no_create_root 1
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_logger /usr/bin/logger
cmd_ssh /usr/bin/ssh
rsync_short_args -aH
link_dest 1
retain monthly 1
verbose 2
loglevel 4
logfile /var/log/rsnapshot-backup-mass-storage
lockfile /var/run/rsnapshot-backup-mass-storage.pid
backup /mnt/mass-storage/ localhost/