1bup-on(1)                                                            bup-on(1)
2
3
4

NAME

6       bup-on - run a bup server locally and client remotely
7

SYNOPSIS

9       bup on <hostname> index ...
10
11       bup on <hostname> save ...
12
13       bup on <hostname> split ...
14

DESCRIPTION

16       bup on runs the given bup command on the given host using ssh.  It runs
17       a bup server on the local machine, so that commands  like  bup save  on
18       the  remote  machine can back up to the local machine.  (You don't need
19       to provide a --remote option to bup save in order for this to work.)
20
21       See bup-index(1), bup-save(1), and so on for details of how  each  sub‐
22       command works.
23
24       This  `reverse  mode' operation is useful when the machine being backed
25       up isn't supposed to be able to ssh into the backup server.  For  exam‐
26       ple,  your  backup  server can be hidden behind a one-way firewall on a
27       private or dynamic IP address; using an ssh key, it can  be  authorized
28       to  ssh into each of your important machines.  After connecting to each
29       destination machine, it initiates a backup, receiving the resulting da‐
30       ta and storing in its local repository.
31
32       For example, if you run several virtual private Linux machines on a re‐
33       mote hosting provider, you could back them up to a local (much less ex‐
34       pensive) computer in your basement.
35

EXAMPLES

37              # First index the files on the remote server
38
39              $ bup on myserver index -vux /etc
40              bup server: reading from stdin.
41              Indexing: 2465, done.
42              bup: merging indexes (186668/186668), done.
43              bup server: done
44
45              # Now save the files from the remote server to the
46              # local $BUP_DIR
47
48              $ bup on myserver save -n myserver-backup /etc
49              bup server: reading from stdin.
50              bup server: command: 'list-indexes'
51              PackIdxList: using 7 indexes.
52              Saving: 100.00% (241/241k, 648/648 files), done.
53              bup server: received 55 objects.
54              Indexing objects: 100% (55/55), done.
55              bup server: command: 'quit'
56              bup server: done
57
58              # Now we can look at the resulting repo on the local
59              # machine
60
61              $ bup ftp 'cat /myserver-backup/latest/etc/passwd'
62              root:x:0:0:root:/root:/bin/bash
63              daemon:x:1:1:daemon:/usr/sbin:/bin/sh
64              bin:x:2:2:bin:/bin:/bin/sh
65              sys:x:3:3:sys:/dev:/bin/sh
66              sync:x:4:65534:sync:/bin:/bin/sync
67              ...
68

SEE ALSO

70       bup-index(1), bup-save(1), bup-split(1)
71

BUP

73       Part of the bup(1) suite.
74

AUTHORS

76       Avery Pennarun <apenwarr@gmail.com>.
77
78
79
80Bup 0.29.2                        2018-10-20                         bup-on(1)
Impressum