backup-domain > 서버관리 Tip

본문 바로가기
 

backup-domain

페이지 정보

작성자 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 15,379회 작성일 12-10-28 18:44

본문

backup-domain

Posted 2011-06-28 13:26 by Joe

backup-domain.pl

Backup one or more virtual servers
This program is analogous to the Backup Virtual Servers page in the Virtualmin web interface. It will create either a single backup file or multiple separate files containing the domains specified on the command line, either locally or on a remote SCP or FTP server.
The --dest option sets the backup destination, and can be a simple path like /backup/virtualmin.tgz , an FTP URL like ftp://user:pass@server:/backup/virtualmin.tgz , or an SCP URL like ssh://user:pass@server:/backup/virtualmin.tgz . When backing up to a single file, the path specifies a file that will be created. When creating one backup per domain, it specifies a directory instead.
The --domain and --all-domains options can be used to control which virtual servers are included in the backup. The --domain parameter followed by a domain name can be given multiple times, to select more than one server.
Alternately, virtual servers can be selected with the --user flag followed by an administrator's username, or --plan followed by a plan name. In both cases, all sub-servers will be included too.
Typically the --all-features option will be used to include all virtual server features in the backup, but you can instead use the --feature option one or more times to control exactly what gets included. In this case, it is wise to use at least --feature dir to include each server's home directory.
The --separate option tells the backup program to create a separate file for each virtual server. The --newformat also causes multiple files to be created, but using the format supported by Virtualmin versions 2.86 and above which puts all information into each domain's home directory, and thus avoids the need to create a large file in /tmp during the backup process.
Using the --ignore-errors option means than any errors encountered backing up one feature or server will be reported and ignored, rather than terminating the whole backup as happens by default.
To include core Virtualmin settings in the backup, the --all-virtualmin option can be specified as well. Alternately, you can select exactly which settings to include with the --virtualmin parameter. For example, --virtualmin config would only backup the module configuration.
By default, backups include all files in each domain's home directory. However, if you use the --incremental parameter, only those changed since the last non-incremental backup will be included. This allows you to reduce the size of backups for large websites that rarely change, but means that when restoring both the full and incremental backups are needed.
To exclude some files from each virtual server's home directory from the backup, use the --exclude flag followed by a relative filename, like public_html/stats or .bashrc.
To have Virtualmin automatically replace strftime-style date formatting characters in the backup destination, you can use the --strftime flag. When this is enabled, the --purge flag can also be given, followed by a number of days. The command will then delete backups in the same desination directory older than the specified number of days.

Command Line Help

Creates a Virtualmin backup, for the domains and features specified
on the command line.

virtualmin backup-domain [--dest file]+
                         [--test]
                         [--domain name] | [--all-domains]
                         [--user name]
                         [--plan name]
                         [--feature name] | [--all-features]
                                            [--except-feature name]
                         [--ignore-errors]
                         [--separate] | [--newformat]
                         [--onebyone]
                         [--strftime] [--purge days]
                         [--incremental]
                         [--all-virtualmin] | [--virtualmin config]
                         [--option "feature name value"]
                         [--as-owner]
                         [--exclude file]*

Multiple domains may be specified with multiple --domain parameters.
Features must be specified using their short names, like web and dns.

The destination can be one of :
 - A local file, like /backup/yourdomain.com.tgz
 - An FTP destination, like ftp://login:pass@server/backup/yourdomain.com.tgz
 - An SSH destination, like ssh://login:pass@server/backup/yourdomain.com.tgz
 - An S3 bucket, like s3://accesskey:secretkey@bucket
Multiple destinations can be given, if they are all remote.

댓글목록

등록된 댓글이 없습니다.

Total 159건 2 페이지
서버관리 Tip 목록
번호 제목 글쓴이 조회 날짜
141 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15667 08-05
140 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 9307 07-08
139 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 8046 07-05
138 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13410 07-05
137 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 7896 07-01
136 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 7310 07-01
135 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 7378 06-25
134 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12479 06-25
133 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14791 06-25
132 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 7820 06-24
131 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 6833 06-23
130 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13981 06-22
129 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 41054 05-31
128 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 8749 05-09
127 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18019 02-26
열람중 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15380 10-28
125 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16245 05-12
124 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15185 05-12
게시물 검색