BIAMI Process - Backup WordPress
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

View only
 
 
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1
Stage
Generic Task Description
Technical Task Description
Script
2
0
WordPress+MySQL/MariaDB FTP Backup
https://docs.google.com/spreadsheets/d/1GPPYuotQegU5VPnBBB8Rfu0vzEk9cST-jVCErmqup5k/edit?usp=sharing
run_command
runcommand=mkdir |||dir|||temp/backup/
3
1Download files via FTPftp downloadftp_downloadhost=|||wphost|||port=|||wpport|||username=|||wpuser|||
password=|||wppass|||
localdir=../../../temp/backup
remotedir=|||wpdir|||filemask=*
download_filemask=*
4
1Backup Databasemysqldumprun_command
runcommand=mysqldump -h |||mysqlhost||| -u |||mysqluser||| -p|||mysqlpass||| |||mysqldb||| > |||dir|||temp/backup/database.sql
5
2Compress ittarrun_command
runcommand=tar -cvzf |||dir|||temp/biami.io-wp-backup-$(date +"%Y-%m-%d").tar.gz |||dir|||temp/backup/*
6
3Upload via FTP to NASftp uploadftp_uploadhost=|||bhost|||port=|||bport|||username=|||buser|||
password=|||bpass|||
localdir=../../../temp/remotedir=|||bdir|||
filemask=biami.io-wp-backup-$(date +"%Y-%m-%d").tar.gz
upload_filemask=backup-$(date +"%Y-%m-%d").tar.gz
7
4Cleanremove files and dirsrun_command
runcommand=rm |||dir|||temp/biami.io-wp-backup-$(date +"%Y-%m-%d").tar.gz
8
4run_command
runcommand=rm -rf |||dir|||temp/backup/*
9
4run_command
runcommand=rm -rf |||dir|||temp/backup/.* 2> /dev/null
10
5run_command
runcommand=rmdir |||dir|||temp/backup
11
12
13
pwphost
14
pwpport
15
pwpuser
16
pwppass
17
pwpdir
18
pmysqlhost
19
pmysqluser
20
pmysqlpass
21
pmysqldb
22
pbhost
23
pbport
24
pbuser
25
pbpass
26
pbdir
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Loading...