Backup database and code.
The backup command is if you would like to take a backup of you site, not normaly needed in a normal deploy - because the prepare command takes care of that.
The backup is placed on the same server that you run dropcat from.
The backup dir is relative to where you run the backup
command from - backup
places the backup in the same directory that run drocat from (not recommended), normaly usage should be /backup
(no trailing slash).
If no name for backup is provided (dropcat backup --backup-name=foo
), the name will be created from a server timestamp.
Default
dropcat backup
defaults to do a db backup - nothing else. If you also adds the option --site-backup
, you whole site will be backuped - converting symlinks to normal files/folders.
dropcat backup
Backup without db
Example:
dropcat --no-db-backup --site-backup
Options
--backup-path[=BACKUP-PATH] Backup path
--server[=SERVER] Server
--user[=USER] User (ssh)
--ssh_port[=SSH_PORT] SSH port
--web_root[=WEB_ROOT] Web root
--alias[=ALIAS] Symlink alias
--app-name[=APP-NAME] Application name
--mysql-host[=MYSQL-HOST] Mysql host
--mysql-port[=MYSQL-PORT] Mysql port
--mysql-db[=MYSQL-DB] Mysql db
--mysql-user[=MYSQL-USER] Mysql user
--mysql-password[=MYSQL-PASSWORD] Mysql password
--time-out[=TIME-OUT] Time out
--backup-site Backup whole site
--no-db-backup No database backup
--backup-name[=BACKUP-NAME] Name of backup
Yaml config
site:
environment:
drush_alias: foobar
remote:
environment:
server: 127.0.0.1
ssh_user: foo
ssh_port: 22
target_path: /var/www/webroot
identity_file: /home/mysuser/.ssh/id_rsa
web_root: /var/www/webroot
temp_folder: /tmp
alias: mysite_latest_stage
target_dir: /tmp
ssh_key_password: foosecret
mysql:
environment:
host: localhost
database: testdb_1
user: root
password: password
port: 3306