Hourly (24), daily (7), weekly (4), monthly (12) remote (ssh) backup.
10K+
Hourly (24), daily (7), weekly (4), monthly (12) remote (ssh) backup.
$ git clone [email protected]:iomoss/docker-files.git
$ cd docker-files/backup
$ ./create-image.sh
Access to the repository requires affiliation with IOMOSS.
$ git clone [email protected]:iomoss/docker-files.git
$ cd docker-files/backup
$ ./run.sh /home/skeen/backup/conf /home/skeen/backup/data
Access to the repository requires affiliation with IOMOSS.
Assuming the configuration files are made, you can start the server as;
$ export CONFIG_FOLDER=/home/config_here
$ export BACKUP_FOLDER=/home/data_here
$ docker run -v $CONFIG_FOLDER:/srv/ -v $BACKUP_FOLDER:/backup/ -d iomoss/backup
The keys are required for pulling in data to the system, and should be added to;
$CONFIG_FOLDER/root/.ssh/id_rsa
Assuming you have generated a ssh key-set on the machine, you can do this by running;
$ export CONFIG_FOLDER=/home/config_here
$ cp ~/.ssh/id_rsa $CONFIG_FOLDER/root/.ssh/id_rsa
Generating a ssh key-set can be done by running;
$ ssh-keygen
And following the instructions.
Make sure this key is installed to the remote hosts authorized_keys file.
This can be done by running;
$ ssh-copy-id USERNAME@HOSTNAME
USERNAME and HOSTNAME should correspond to the ones in the backup-targets file.
backup-targetsThe backup targets file is used to decide what to backup, and should be added to;
$CONFIG_FOLDER/root/backup-targets
It's formatted as the backup targets in rsnapshot.conf;
# Example Entry
backup USERNAME@HOSTNAME:/home/skeen/www/ skeen-website/
Note: The ssh private key from above should be in the authorized_keys file at
/home/$USERNAME/.ssh/authorized_keys on the HOSTNAME.
Content type
Image
Digest
sha256:8eae78460…
Size
81.7 MB
Last updated
almost 11 years ago
docker pull iomoss/backup