2

I'm backing up a Linux machine (Ubuntu 10.04) with rsync over SSH.

If I specify for my path something like "home/jason" it works just fine. "home/jason" is translated into "/home/jason". But how do I back up my root directory, i.e. "/"? Logic would have it that, since a slash gets slapped onto the front of whatever you put for path, a blank path would come through as "/". That's not the case, though. A trick like "home/../" doesn't work, either.

How do I back up the root directory?

Jason Swett
  • 1,458
  • 4
  • 23
  • 37

3 Answers3

1

Turns out putting "." works because it translates into "/." which is equivalent to "/".

Jason Swett
  • 1,458
  • 4
  • 23
  • 37
0

I take it you've tried "/"? If that didn't work, what exactly were the symptoms?

NPE
  • 669
  • 3
  • 9
  • 19
  • The option I use is "Remote: Rsync Server". Since I'm doing a remote backup with rsync, I don't think "Volume: c" would make sense. If I select "Volume: c", the "Host" field gets disabled and other pertinent fields go away as well. Let me know if I'm misunderstanding. – Jason Swett Oct 07 '10 at 15:11
  • No, I misread your question and my answer made no sense. Hence the edit. – NPE Oct 07 '10 at 15:12
  • I have tried "/". The error simply said, "Invalid path." – Jason Swett Oct 07 '10 at 15:53
0

I think you need to create a module for "/" in rsyncd.conf (on the box which you're trying to back up.)

Something along these lines:

[root]
  path = /
  comment = "The root directory"

Get rsyncd to reload the config, and you should be able to use "root" as the path in the Frontview GUI.

See http://linux.die.net/man/5/rsyncd.conf, especially the examples towards the end of the file.

NPE
  • 669
  • 3
  • 9
  • 19