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:
- Start a backup manually (it will fail after a minute or two with the above mentioned error)
- Open finder, and go to the now mounted disk
- In my case, there was a <date>.inProgress file
- If TimeMachine mounted the share for you, you will have write access (see notes below)
- Delete the inProgress file
- Empty your trash
- It should be gone:
- Unmount everything
- Try backing up again
In my case it changed to this error, which happens to me every so often due to corrupt backups (loss of network (because the drive is on VPN, and when I connect to my VPN Mac starts backing up, eventhough I actually don’t really need/want that, it just happens to find the LAN), sleeping at the wrong moment, and Apple just generally not supporting DIY-TimeMachine). So this does mean I have to start from scratch anyhow… 🙁
Notes: I’ve tried to manually mount the afp or smb share first, and open the .sparebundle myself via finder.
However, both via Finder as via terminal (including sudo) gave permission errors (partly reading, mostly writing) such as:
Used my Raspberry Pi, with an USB disk as TimeMachine. Another disk as NAS/storage. It’s just quite slow… Not sure whether it’s my WiFi or RPi that can’t keep up.
But for now, it’s working.
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/ \
This will upload any files in /Users/you/Documents to /home/you/remote-backup-directory.
It will use ssh on port 222 to transfer the files.
Just execute ./.rsync (if that’s the name of your file) to run it.
If you make any changes (locally), and run this, the changes will be applied on the remote server (e.g. file changes, renames, deletes, …) — this will delete files on the remote server if you’ve deleted them locally!
The file .rsync_exclude is optional, it includes all files or directories that should NOT be uploaded
This is what I have in my .rsync_exclude:
Nazgul:~ yeri$ cat .rsync_exclude
Simple as hell, and yet so handy!