backupacct
Generate Backup Of Hosting Account
This tool will help you to create a complete backup of eenos hosting account. This backup can be use to restore on another eenos server.
Command:
/usr/local/eenos/scripts/backupacct
Command Options:
/usr/local/eenos/scripts/backupacct
Copyright(c) 2020-2022, eenos.com
usage: backupacct [options] user
Create backup of eenos hosting account. By Default create compressed backup
Required:
user Eenos user name to backup
Option(s):
-h, --help show this help message and exit
--workdir WORKDIR The directory to put the package
--compressed Compress backup into gzipped tar file (tar.gz)
--archived Archive backup into tar file (.tar)
--nocompress Neither compressed nor archived backup
--skiphomedir Exclude home directory backup
--skipmysql Exclude MySQL database backups
--skippgsql Exclude PgSQL database backups
--skipmongodb Skip Mongodb database backups
--skipmailman Exclude Mailman3 mailing list backups
--skipemail Exclude email accounts
--skipbwdata Exclude bandwidth usage
--skipdiskusage Exclude disk usage
--skippublichtml Exclude public_html folder
--log Enable unique backup log
Create Backup
To create backup of eenos hosting account use the following command
/usr/local/eenos/scripts/backupacct <eenos user>
Example : Create backup of eenos hosting account with user name foo
/usr/local/eenos/scripts/backupacct foo
You can generate backups in three different formats
- Compressed Backups
- Archived Backup
- no compressed Backups
Compressed Backups
This is the default backup option. This will create a compressed gzip tar file as backup file. The backup file will be ending with .tar.gz format
Archived Backup
The backups will be created as a tar file without any compression . The backup file end with extension .tar format
Non Compressed ( Plain , Incremental , Folder Based )
This a backup without any type of compression or archiving . The backup name will be folder name which contains all backup files required to migrate or transfer the account.
Backup Options
You can include a number of options to the backup tool for generating the desired type of backup. The default backup option is a compressed backup with full hosting account data. It is suitable for transferring hosting accounts.
The backup options are explained below
--workdir
Use this options place the generated backup file into a specific folder on your server.
Example : To backup the eenos user foo
/usr/local/eenos/scripts/backupacct --workdir foo