3

I'm running the following command:

rdiff-backup --remote-schema '%s' 'sudo /usr/bin/rdiff-backup --server \
    --restrict-read-only /'::/etc /var/backups/hosts/derp

It's backing up /etc from localhost and putting it in /var/backups/hosts/derp just fine. I have no idea how to get this to run and pull the files from another host.

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
Ben Preston
  • 304
  • 1
  • 3

1 Answers1

1

You can specify the source and destination with user@host:/folder style. From the man page of rdiff-backup:

rdiff-backup      [options]      [[[user@]host1.foo]::source_directory]
[[[user@]host2.foo]::destination_directory]

And --remote-schema refers to the type of connection to the remote host -- ssh by default.

Michael Mrozek
  • 91,316
  • 38
  • 238
  • 232
Patkos Csaba
  • 2,500
  • 1
  • 20
  • 15