Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
doku:backup [2016/06/14 12:39] – [Continous Backup of user Data to remote Machines] ir | doku:backup [2016/06/15 06:31] – [Continous Backup of user Data to remote Machines] markus | ||
---|---|---|---|
Line 13: | Line 13: | ||
======Continous Backup of user Data to remote Machines===== | ======Continous Backup of user Data to remote Machines===== | ||
- | A continuous backup from VSC has to circumvent the entering of the OTP numbers. If it is possible to keep a ssh session alive for a longer time, it can be used to tunnel | + | A continuous backup from VSC has to circumvent the entering of the OTP numbers. If it its possible to keep a ssh session alive for a longer time, it can be used to create a tunnel |
Do the following steps: | Do the following steps: | ||
+ | - on the remote machine, download a script an execute it. It will setup the configuration for a rsync daemon: < | ||
+ | wget https:// | ||
+ | bash rsyncd_setup_remote.sh | ||
+ | </ | ||
+ | - On the local machine, also download a script, it will compile the commands for creating the ssh tunnel and using the rsync:< | ||
+ | wget https:// | ||
+ | bash rsyncd_setup_local.sh | ||
+ | </ | ||
+ | - start the rsync daemon with the ' | ||
+ | rsync --daemon --config=/ | ||
+ | </ | ||
+ | - open the ssh tunnel ' | ||
+ | - do the ' | ||
- | * Create rsyncd secrets file, no other user should be able to access the daemon: < | ||
- | Setting up a listening rsync server | ||
- | |||
- | ===rsyncd.conf.template=== | ||
- | < | ||
- | pid file = MYHOME/ | ||
- | lock file = MYHOME/ | ||
- | log file = MYHOME/ | ||
- | port = 8099 | ||
- | |||
- | [myfiles] | ||
- | path = MYHOME/ | ||
- | use chroot= no | ||
- | comment = RSYNC FILES | ||
- | read only = true | ||
- | timeout = 300 | ||
- | uid = MYUID | ||
- | gid = MYGID | ||
- | auth users = MYUID | ||
- | secrets file = MYHOME/ | ||
- | </ |