backupacct
Generate Backup Of Hosting Account
This tool will help you to create a complete backup of your Eenos hosting account. This backup can be used 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 a backup of the eenos hosting account, use the following command
/usr/local/eenos/scripts/backupacct [options] <eenos user>
Example: Create a backup of the eenos hosting account with user name foo
/usr/local/eenos/scripts/backupacct foo
You can generate backup 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 a 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 the extension .tar format.
Non Compressed ( Plain, Incremental, Folder Based )
This a backup without any type of compression or archiving. The backup name will be a folder name that contains all backup files required to migrate or transfer the account.
Backup Options
You can include several options with 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 option to 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
--compressed
To create a compressed backup you can do as follows. This is the default backup option.
Example: To backup the eenos user foo
/usr/local/eenos/scripts/backupacct --compressed foo
--archived
To create an archived backup.
--nocompress
To create a backup without any compressions or archive format. The backups will be kept inside a folder.
--skiphomedir
Skip copying the home folder of the eenos user account.
--skipmysql
Exclude MySQL database backups of the given user.
--skippgsql
Exclude the PostgreSQL database backups of the user.
--skipmongodb
Exclude the MongoDB databases, users, and roles of the user.
--skipmailman
This is a future option for the next version. Mailman3 backup and restoration are not supported yet.
--skipemail
Skip email account backups.
--skipbwdata
Skip collecting bandwidth usage history of the eenos user.
--skipdiskusage
Skip the backup of the disk usage history of the hosting account.
--skippublichtml
Exclude the folder public_html, the main document root of the account.