Skip to content

Commit

Permalink
Update backup.rst (#216)
Browse files Browse the repository at this point in the history
This is how you can back up all your lets encrypt certificates as well.
  • Loading branch information
kshah37 committed Jul 18, 2022
1 parent b719b39 commit 10fee52
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/getting_started/backup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ Be sure to change the password by replacing the zzzzzzzz in PGPASSWORD="zzzzzzzz
#source
#tar -zvcf /var/backups/fusionpbx/backup_$now.tgz /var/backups/fusionpbx/postgresql/fusionpbx_pgsql_$now.sql /var/www/fusionpbx /usr/local/freeswitch/scripts /usr/local/freeswitch/storage /usr/local/freeswitch/recordings /etc/fusionpbx /usr/local/freeswitch/conf /usr/local/freeswitch/sounds/music/
#sync certificate directory
rsync -avz -e 'ssh -p 22' root@$ssh_server:/etc/dehydrated/ /etc
rsync -avz -e 'ssh -p 22' root@$ssh_server:/usr/src/fusionpbx-install.sh/debian/resources/letsencrypt.sh /usr/src/fusionpbx-install.sh/debian/resources/
rsync -avz -e 'ssh -p 22' root@$ssh_server:/etc/dehydrated/accounts/ /etc/dehydrated/
rsync -avz -e 'ssh -p 22' root@$ssh_server:/etc/dehydrated/chains/ /etc/dehydrated/
rsync -avz -e 'ssh -p 22' root@$ssh_server:/etc/dehydrated/config/ /etc/dehydrated/
rsync -avz -e 'ssh -p 22' root@$ssh_server:/etc/dehydrated/config/ /etc/dehydrated/
rsync -avz -e 'ssh -p 22' root@$ssh_server:/etc/dehydrated/hook.sh /etc/dehydrated/
rsync -avz -e 'ssh -p 22' root@$ssh_server:/etc/dehydrated/certs/ /etc/dehydrated/certs
rsync -avz -e 'ssh -p 22' root@$ssh_server:/usr/src/dehydrated /usr/src/


echo "Backup Completed"


Expand Down

0 comments on commit 10fee52

Please sign in to comment.