Skip to content
Guten Ye edited this page May 5, 2015 · 1 revision

Backup to USB drive

# edit /backup/conf/hello/data

  files="/root"

# edit /backup/conf/hello/default

  files="
    /etc
    /tmp/gutbackup
  "
  exclude="/etc/fstab"

  backup() {
    # work directory is /tmp/gutbackup
    pacman -Qqe > pkg.lst
    run this        # run rsync on this file
    run data        # run /backup/conf/hello/data
  }

Backup to Remote Server

# ssh host
# edit /backup/conf/hello.conf

  to="root@HOST:/backup"
  conf="/backup"

(local machine)
# edit /backup/conf/hello/default

  files="
  /etc
  /tmp/gutbackup
  "

  backup() {
    pacman -Qqe > pkg.lst
    run this
  }

Backup from Remote Machine, aka Server Mode

Configure Once, Backup Any Machine.

Setup root ssh access: http://unix.stackexchange.com/questions/92123/rsync-all-files-of-remote-machine-over-ssh-without-root-user

client_backup() {
  # it runs on client side
}

Server

  1. Install gutbackup

Client

Install
ArchLinux $ pacman -S rsync
OpenWRT $ opkg install rsync
Clone this wiki locally