Won't backup to NAS?

Asked by Canulye

Warning: Complete Linux noob here. Please talk to me like I'm an idiot.

Just installed Linux Mint 4 days ago. Been trying to get some sort of backup program set up to backup important files to a NAS, but I can't seem to figure it out. I'm assuming it's all "user error".

My system: Linux Mint 16, 64 bit, Cinnamon.
My NAS: Synology DS213j (has a Linux-derived "DSM v. 5.0" OS). It's on my LAN (ie. not accessed via Internet).

I've managed to "mount" the NAS target folder in question (manually) on my machine, I can manipulate content in Nemo (Mint file manager). The Nemo location bar says "smb://diskstation/home/"

I've set up Backintime, but I strongly suspect I've not done it right. In the GUI setup, I've browsed to the target folder and selected that. In the "where to save snapshots" section it ends up saying: "/run/user/1000/gvfs/smb-share:server=diskstation,share=home".

When I click the "Take a snapshot" button it starts, it sets up a "backintime" folder (and several subfolders) on the NAS, but they all end up empty (no files are actually backed up, it just creates the folder structure, /diskstation/home/backintime/PCNAME/USERNAME/1). So BIT accesses the NAS to some degree at least. I end up getting the message "no backup needed". Repeating the process results in the folder being "modified" (date stamp updates), but no content is actually moved at any point.

Restarting BIT immediately throws me into the setup again, I have to tell it where to save the snapshot. Using the terminal command "backintime --snapshots-list-path" gives me "the application is not configured !"

What am I doing wrong? Please let me know if there's any relevant info I didn't include.

Btw, according to the NAS documentation, I can access the NAS via SSH, but only as "admin" or "root" and only on port 22, so I'd rather not use that option if possible (I have a knack for messing up important files and prefer to merely be a "user").

Question information

Language:
English Edit question
Status:
Answered
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Germar (germar) said :
#1

You can not use gvfs auto-mounted smb-shares as destination. You'd have to use either a fuse based filesystem or add a line to /etc/fstab to mount the smb-share.

But I'd rather not use smb-shares at all (that's quite slow). Instead using current BIT version (1.0.34) over SSH. To update to current version run:
sudo add-apt-repository ppa:bit-team/stable
sudo apt-get update
sudo apt-get upgrade

I don't know Synology Diskstations but I'm pretty sure there is a way to gain passwordless access for unprivileged users, too. Please ask in Synology support forums for help on this.
For all other steps on how to set up BIT with SSH please take a look at 'man backintime'

Revision history for this message
Decembry Quentin (qedinux) said :
#2

It is possible to use Backintime with Synology DSM 5.

It requires a few modifications on the NAS and a good configuration. Keep it in mind when you perform an update of DSM the modifications will be removed.

If you want to backup your data on a share named backups located on volume1. You should create a new share named volume1 located on volume1. Make a directory named backups in this share.

   mkdir /volume1/volume1/backups

Mount /volume1/backups on /volume1/volume1/backups

   mount -o bind /volume1/backups /volume1/volume1/backups

So, when you access backups by SSH you go through /volume1/backups When you access backups by SFTP you go through /volume1/volume1/backups

The 2 solutions give access to the same datas.

Complete explanation on my wiki [http://wiki.qedinux.be/index.php?title=BackInTime_to_Synology_DSM_5].

Revision history for this message
Germar (germar) said :
#3

Thanks a million Decembry Quentin for this nice HowTo. I linked it in FAQ.

Revision history for this message
Decembry Quentin (qedinux) said :
#4

In my previous answer there is a mistake on the link. A closing square bracket was added but it shouldn't.

http://wiki.qedinux.be/index.php?title=BackInTime_to_Synology_DSM_5

Revision history for this message
Germar (germar) said :
#5

Jepp. I noticed. Thanks again

Can you help with this problem?

Provide an answer of your own, or ask Canulye for more information if necessary.

To post a message you must log in.