Bash script to take cPanel backup in batches
Scenario:
I'm trying to resolve the below scenario by writing bash script.
On my managed linux server I have about 30 accounts and there is not enough space to generate full 30 accounts backup in one go and transfer it via SFTP to my Backup Synology Server. What I'm thinking of doing is breaking the backup into batches and transfer it over accordingly to prevent server choking:
Steps:
- Generate 5 accounts cPanel Backup
- Transfer the backup generated to Synology backup server via SFTP
- Delete the backups on source server.
- Repeat the process until all accounts are transferred in batches.
Please sign in to leave a comment.
Comments
0 comments