Commit graph

129 commits

Author SHA1 Message Date
myvesta
f36d20641e
Update v-backup-user 2021-09-14 20:24:39 +02:00
myvesta
2f3bcfe5ec
backuping php-fpm conf file 2021-09-14 20:22:35 +02:00
myvesta
29f8358516
Override backup path 2021-08-23 20:50:48 +02:00
myvesta
5b0e051565
Update v-backup-user 2020-09-18 01:04:25 +02:00
myvesta
1f63bf12e3
Update v-backup-user 2020-09-18 00:46:38 +02:00
myvesta
c56ac362cd
Update v-backup-user 2020-09-18 00:43:49 +02:00
myvesta
476024381a
More details about needes space for backup 2020-09-17 23:52:42 +02:00
myvesta
fd47112fc1
Checking necessary available disk space before doing backup
Many thanks to @ScIT-Raphael and HestiaCP
https://github.com/hestiacp/hestiacp/pull/1141
2020-09-10 22:49:53 +02:00
myvesta
68543c5d99
Merge pull request #55 from serghey-rodin/master
Correcting FTP link in v-backup-user
2020-04-09 20:56:03 +02:00
dpeca
cc8a3e0c58
Correcting FTP link in v-backup-user 2020-04-09 20:53:27 +02:00
myvesta
e37e5cf2a6
Merge pull request #51 from serghey-rodin/master
Pull from official vesta repo
2020-03-23 02:02:26 +01:00
dpeca
a5712542d7 Temporary fix for parsing backup conf 2020-03-23 01:21:57 +01:00
myvesta
c4a644bd9a
Introducing KEEP_N_FTP_BACKUPS 2020-02-21 13:10:40 +01:00
Peca
db8b4ed21e Merge branch 'pr/34' 2019-08-10 17:09:42 +02:00
Christian Oder
d24f68a370
v-backup-user: Properly fix userdata backup exclusions
So far, no exclusions have been accounted for as fargs has not been passed.
Rework the logic for fargs parsing based on domain exclusions and pass fargs to the tar command.

Also add --anchored based on 37c69b8f4c
2019-05-15 17:07:53 +02:00
Serghey Rodin
20c7764485
Merge pull request #1575 from moucho/backups
Don't exclude "logs" folder recursively on backups
2019-05-14 11:14:16 +03:00
dpeca
6a6cfe969a
Introducing ONLY_ONE_FTP_BACKUP variable 2019-05-10 23:22:31 +02:00
Steen Schütt
a981ddb468
Prevent v-backup-user from excluding folders named logs further down the tree
This change will fix issues with files like `public_html/wp-content/plugins/sitepress-multilingual-cms/classes/logs/interface-wpml-log.php` from being excluded, but still exclude the intended main logs directory. Fixes a semi-widespread issue with VestaCP and WPML.
2019-04-10 14:42:10 +02:00
dpeca
f4749743ce
Do not backup tmp folder 2019-02-15 01:49:12 +01:00
Marcos
635107b804 Merge branch 'backups' of github.com:moucho/vesta into backups 2018-12-24 17:51:15 +01:00
Marcos
49f69ce60d Fix conflicts 2018-12-24 17:51:07 +01:00
Marcos
daa33140f4
Merge branch 'master' into backups 2018-12-24 17:46:08 +01:00
Marcos
73cb7667cd Fix conflict 2018-12-24 17:44:23 +01:00
myvesta
162e58773f
Merge pull request #30 from serghey-rodin/master
update from master
2018-11-26 23:08:22 +01:00
Dmitry Bannik
eb29a1f374
Merge branch 'master' into fix-tar-exclude-folder 2018-11-21 04:46:41 +03:00
myvesta
f02349de16
Merge pull request #29 from serghey-rodin/master
removed duplicate loop
2018-11-20 11:29:32 +01:00
Serghey Rodin
00bc162fe6 removed duplicate loop 2018-11-20 11:20:21 +02:00
myvesta
c1eb00dabb Merge branch 'pr/28' 2018-11-15 14:11:52 +01:00
Serghey Rodin
0437c4ac3e fix backup exlustions for files 2018-11-14 17:53:48 +02:00
myvesta
7b498a7a3c
Fix for avoiding "We can use mysqldump now" 2018-11-04 03:53:13 +01:00
myvesta
b4dc63b72f
Avoiding "We can use mysqldump now" 2018-11-04 03:49:14 +01:00
myvesta
14f64bc512
Moving backup LA check 2018-11-04 03:41:20 +01:00
dpeca
3d0e6dd26b
Do not skip backup if LA is above threshold 2018-10-30 14:33:40 +01:00
dpeca
4814e7a28e
Adding call for function wait_for_backup_if_it_is_not_time_for_backup 2018-10-28 03:48:22 +01:00
dpeca
10eed3da8f
Wait another mysqldump to finish before we use mysqldump 2018-10-28 03:12:13 +01:00
myvesta
41110bf27d
Restart apache when enter wait-backup state 2018-09-30 00:10:41 +02:00
dpeca
ce4292da1d
Additional echo for waiting hour in backup 2018-09-10 02:47:32 +02:00
dpeca
67a081f7fc
fix for backup wait 2018-09-10 02:18:43 +02:00
dpeca
b4bb0bb5e8
echo for backup wait 2018-09-10 01:18:37 +02:00
myvesta
fc187b3863
Block backup if current hour is after 6 AM 2018-09-02 21:40:01 +02:00
myvesta
8d4a2c1707
Block backup if current hour is after 8 AM 2018-09-02 02:07:19 +02:00
dpeca
df7cccac4c
Little fix for previous commit
see 563a9d8b10
2018-08-12 04:25:18 +02:00
dpeca
563a9d8b10
Avoid blocking v-backup-user because of already dumped db
Well, in one db.conf I found duplicated entry for the same database.

root@btvc:~# cat /usr/local/vesta/data/users/btvc2011/db.conf
DB='btvc2011_cart' DBUSER='btvc2011_9091dn' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='1' SUSPENDED='no' TIME='' DATE=''
DB='btvc2011_cart' DBUSER='btvc2011_admin' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='0' SUSPENDED='no' TIME='' DATE=''
DB='btvc2011_cart' DBUSER='btvc2011_david' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='0' SUSPENDED='no' TIME='' DATE=''
DB='btvc2011_cart' DBUSER='btvc2011_djn' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='0' SUSPENDED='no' TIME='' DATE=''
DB='btvc2011_cart' DBUSER='btvc2011_jd' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='0' SUSPENDED='no' TIME='' DATE=''
DB='btvc2011_cart' DBUSER='btvc2011_oscar' MD5='*' HOST='localhost' TYPE='mysql' CHARSET='UTF8' U_DISK='0' SUSPENDED='no' TIME='' DATE=''

Obviously different users has access to the same database.
I know that this is impossible to create in Vesta.
But @Skamasle thirt-party script for importing cPanels backup obviously CAN do that... and many people use that cPanel importer.

This fix will avoid databases that are already dumped.
Without this fix backup script get stuck on stdin waiting for:
gzip: /backup/tmp.4YlV9Yr4m5/db/btvc2011_cart/btvc2011_cart.mysql.sql.gz already exists; do you wish to overwrite (y or n)?
2018-08-12 03:17:01 +02:00
Dmitry Bannik
98542d69bc Fix editing backup exclusions 2018-07-27 23:59:53 +03:00
dpeca
11eca5dfda
Configurable $BACKUP_TEMP in v-backup-user 2018-06-02 00:52:31 +02:00
Alexandros Ioannides
b06ddecbc1
Replace /tmp with $BACKUP
/tmp size is not enough for larger websites.
2018-05-31 21:21:16 +03:00
Marcos
37c69b8f4c Don't exclude "logs" folder recursively 2018-05-21 03:41:46 +02:00
Anton Reutov
da5bcbe624
Fix backup rotate for ftp/sftp mode 2018-02-08 12:10:23 +03:00
Made I.T
9059167db7
#1421 - Fix Backup retention
Fix #1421
2018-01-02 21:05:31 +01:00
Serghey Rodin
dcf0ae96a8
Merge pull request #1384 from ioannidesalex/patch-1
Update v-backup-user
2017-12-29 00:00:01 +02:00