Created
April 18, 2021 10:02
-
-
Save pixelchrome/db8ac00765f3d35b6d3921c2e0797ca4 to your computer and use it in GitHub Desktop.
Single Node Rancher Docker Backup Scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo rm /opt/rancher.bak/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
docker stop rancher | |
sudo tar pzcf /opt/rancher.bak/backup_rancher_`date +%F`.tar.gz /opt/rancher | |
docker start rancher |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using these scripts with backuppc as pre- and post-scripts