#Backup

4 posts tagged Backup

Mounting a whole disk with partitions

· errors, linux, software

I reinstalled one of my RPis (moving from 32 to 64 bit).

Before doing the full reinstall, I took a dump (dd) of my disk.

Usually, I create one per partition, but this was the Christmas season, and I was half occupied with feasting and half occupied with entertaining Ila. So, mistakes were made.

I ran dd if=/dev/sdb of=backup.img -- but this means I can't mount the disk directly, as it's not a partition:

Unable to complete backup. An error occurred while creating the backup folder.

· apple, errors, linux, networking, software

5 or so days ago, this error suddenly popped up:

Unable to complete backup. An error occurred while creating the backup folder.

I have a Raspberry Pi, acting as TimeMachine (using afp/Bonjour/Netatalk).

There are several things I tried to solve this, including messing in the sparebundle from Linux (chowning) and deleting my TM .plist. This probably messed up my backup a bit.

But what seemed to ‘solve’ it for me was:

Rsync backups

· apple, linux, software

My own simple rsync backup ‘script’.

You’ll need a rsync server, something to backup, and ssh-agent running to ease the process (or, fill in your password each time).

Add the following lines (using a terminal text editor) to a text file (".rsync" for example, hidden files under Unix-like systems), and chmod +x $file.

rsync --archive -uv --exclude-from=/home/you/.rsync_exclude \
--rsh="ssh -p 222" --delete --stats --progress /Users/you/Documents/ \
you@remost.host.com:/home/you/remote-backup-directory

This will upload any files in /Users/you/Documents to /home/you/remote-backup-directory.