Commit graph

100 commits

Author SHA1 Message Date
dpeca
cc8a3e0c58
Correcting FTP link in v-backup-user 2020-04-09 20:53:27 +02:00
dpeca
a5712542d7 Temporary fix for parsing backup conf 2020-03-23 01:21:57 +01: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
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
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
Dmitry Bannik
eb29a1f374
Merge branch 'master' into fix-tar-exclude-folder 2018-11-21 04:46:41 +03:00
Serghey Rodin
00bc162fe6 removed duplicate loop 2018-11-20 11:20:21 +02:00
Serghey Rodin
0437c4ac3e fix backup exlustions for files 2018-11-14 17:53:48 +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
Serghey Rodin
09c884f556
Merge pull request #1254 from ClayRabbit/patch-1
v-backup-user: On-the-fly gzip compression
2017-12-28 15:55:06 +02:00
Serghey Rodin
4a2f0424e8
Merge pull request #1142 from Srgk/master
fix tmp dir for restore backup user
2017-12-28 15:19:53 +02:00
Alexandros Ioannides
b48ed75871
Update v-backup-user 2017-12-28 14:25:34 +02:00
Serghey Rodin
936ee3b63e
Merge pull request #1363 from dekyfin/master
Fixed Empty ftp backup files #515
2017-12-28 13:56:06 +02:00
Serghey Rodin
3e63e92279 fixed typo: PROXY_YSTEM instead of PROXY_SYSTEM 2017-12-13 14:26:01 +02:00
Serghey Rodin
f8be208fa3 Merge branch 'master' of github.com:serghey-rodin/vesta 2017-12-07 15:04:55 +02:00
Serghey Rodin
4053f9ac5d New style for web configs / separate conf per domain 2017-12-07 15:04:40 +02:00
Serghey Rodin
d5f78d5aa2
Merge pull request #1237 from cmstew/cmstew-v-user-backup-patch
Update v-backup-user / Fix from @cmstew
2017-12-06 23:38:51 +02:00
Unknown
ff0d1b7787 Fixed FTP backups are creating empty zip files #515
Changed the ftp backup from active to passive mode in bin/v-backup-user
2017-12-06 11:16:59 +00:00
Robin Dirksen
f8368220ff Backup filename changed (#1289)
* Backup filename changed

Changed the backup filename for running more backup each day - for example every 4 hours

* Restore user fix with new backup date

* Check if the backup name has an old notation

* Fix backup permission check

* fixed regex

* fix
2017-11-13 17:22:44 +03:00
Serge Kraev
95a26fb323 Merge branch 'master' into master 2017-09-13 17:05:31 +03:00
ClayRabbit
e1d64b8730 On-the-fly gzip compression
Reduces backup time, free space requirement and disk writes.
2017-08-04 17:46:40 +05:00
cmstew
e71a1619f0 Update v-backup-user
I noticed that I always seemed to have 1 less backup than I was supposed to in my VestaCP. This fix resolves the issue for me.


Problem outlined:

- My VestaCP package says that I'm supposed to be allowed 3 backups.
- The backups tab of the GUI showed that I had 3 backups.
- I was never able to access the oldest backup (Almost like it wasn't actually there).
- I checked the backup folder using SSH and I found that I only ever have the latest 2 backups available.
- It was clear that a script was deleting the 3rd backup prematurely.
2017-07-21 10:58:21 -06:00
dpeca
4aeec46841 Making SFTP backup able to work with empty folder name 2017-04-28 20:37:20 +02:00
dpeca
e022c6507b Better fix for FTP backup without folder name 2017-04-22 02:22:23 +02:00
dpeca
367d0b34ef Making v-backup-user able to upload backup to FTP if FTP folder is not set
Before this fix v-backup-user was unable to upload backup to FTP if $BPATH (FTP folder) is not set
2017-04-19 15:36:43 +02:00
dpeca
930a2a82e3 Making v-backup-user able to send email notification
doh...
2017-04-11 17:52:07 +02:00
Serge Kraev
2a409e005b fix tmp dir for backup user 2017-03-17 19:15:13 +04:00
dpeca
6d88ca31c3 Making sure domain_idn is always set 2017-03-05 23:34:07 +01:00
Justin991q
b987054048 Fixed typo in the backup script 2017-02-25 03:38:53 +01:00
Serghey Rodin
e5950d516d Code refactoring: domain_idn + new restart routine 2017-01-11 16:52:11 +02:00
Serghey Rodin
a14556d486 unofficial google nearline support 2016-10-06 23:07:48 +03:00
ioannidesalex
e5f49c402d Spelling corrections 2016-09-22 21:54:41 +03:00
Serghey Rodin
afd5193285 Merge pull request #826 from onbalt/master
Fix not sending "backup has been completed" mail
2016-09-05 16:31:19 +03:00
Serghey Rodin
d974b601fd Fix for backup count 2016-08-30 14:15:05 +03:00
onbalt
20e25b4648 Send "backup has been completed" mail 2016-08-30 13:00:44 +03:00
Serghey Rodin
e106fee8d2 Merge pull request #687 from olshek/patch-1
improved regular expression in v-backup-user file
2016-06-25 11:20:45 +03:00
Serghey Rodin
a61a6e979e refactoring: log_event(), is_format_valid() 2016-06-24 16:31:43 +03:00
Serghey Rodin
325ca65f32 web function refactoring 2016-06-09 17:09:55 +03:00