-
-
Save oxtd/723c2a19f3b87455711116ee70ef34b5 to your computer and use it in GitHub Desktop.
5
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
| www-data@monitors:/etc$ cat /home/marcus/.backup/backup.sh | |
| #!/bin/bash | |
| backup_name="cacti_backup" | |
| config_pass="******************" | |
| zip /tmp/${backup_name}.zip /usr/share/cacti/cacti/* | |
| sshpass -p "${config_pass}" scp /tmp/${backup_name} 192.168.1.14:/opt/backup_collection/${backup_name}.zip | |
| rm /tmp/${backup_name}.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment