Out of space, but you know it’s wrong!

So, I have a Mailcleaner server I’m using for cleaning my mail, but I also wanted to use the 250GB space as backup Space.

After settings up Rsync and the firewall I starte backing up data from my NAS, but it kept erroring out after a short while.

Turned out I had run out of Space on my backup server, but I just knew that was wrong, so I checked it out using df -h

df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/vda1             7.7G  1.4G  5.9G  19% /
tmpfs                 501M     0  501M   0% /lib/init/rw
udev                  494M  172K  493M   1% /dev
tmpfs                 501M  4.0K  501M   1% /dev/shm
/dev/vda3             235G   13G  211G   6% /var
tmpfs                 501M  108K  500M   1% /var/mailcleaner/spool/tmp

I had a backup directory in root (marked red) named “rsync-backup”, so no Wonder it would complain after a short while.

I decided to move my backup folder into the /var folder (marked blue) like so:
mv /rsync-backup /var/rsync-backup

Reconfigure Rsync to match path change:
If you don’t use chroot in your Rsync backup, you can now just symlink to new location:
ln -s /rsyng-backup /var/rsync-backup
If it doesn’t Work, you have to change the path in /etc/rsyncd.conf to point at the new location.

Using Synology NAS backup
While Synology NAS can encrypt and compress before using Rsync, you might have to reconfigure the Bakcup location and backup job anew, as Synology nas are rather prickly regarding changes.

Posted in Linux, Rsync, System Utils, Troubleshooting

Leave a Reply