Backup problem 1.1.13

  • Hello!
    Do you have a problem that I tried 1.1.11, 12, 13 and all three versions in debian 7 backup does not work properly.
    Randomly missing files or a complete backup missing. (Domain files missing) (Database good)

  • Of course yes.
    I use i-MSCP two years so the options I'm aware of.
    But this problem has not been met.
    Yesterday I managed to save in one account (1 domain + 1 subdomain)
    The main domain does not have a backup, partially subdomain.


    SRY my bad english :)

  • Hello;

    • What you mean by "partially" exactly? What type of file is missing?
    • What is occurring if you run the backup script manually (perl /var/www/imscp/engine/backup/imscp-backup-all) ?
    • What is the total size of the Web folder to backup?
    • What is the compression algorithm you are using?
    • What the log say ( /var/log/imscp/imscp-backup-all.log ) when the debug mode is enabled through the imscp.conf file, after running the backup script manually?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Small web folder ~40mb
    I use default compression algorithm, i did not change anything.
    The backup files are missing at random.
    Now the entire main domain is missing one part, you have a subdomain.
    When try to unpack my bad backup, disk read error message to me.


    Debug:


    [Tue Jul 22 21:35:52 2014] [debug] iMSCP::Debug::silent: Entering in silent mode
    [Tue Jul 22 21:35:52 2014] [debug] iMSCP::Bootstrapper::lock: Acquire exclusive lock on /tmp/imscp-backup-all.lock
    [Tue Jul 22 21:35:52 2014] [debug] iMSCP::Bootstrapper::boot: Booting backend...
    [Tue Jul 22 21:35:52 2014] [debug] iMSCP::Config::_init: Tying /etc/imscp/imscp.conf
    [Tue Jul 22 21:35:52 2014] [debug] iMSCP::Config::_loadConfig: Loading /etc/imscp/imscp.conf
    [Tue Jul 22 21:35:52 2014] [debug] iMSCP::Config::_parseConfig: Parsing /etc/imscp/imscp.conf
    [Tue Jul 22 21:35:52 2014] [debug] iMSCP::Execute::execute: Executing command: /bin/rm -fR /var/www/virtual/example.com/backups/*
    [Tue Jul 22 21:35:52 2014] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    [Tue Jul 22 21:35:52 2014] [debug] iMSCP::Execute::execute: Executing command: /bin/tar --create --directory=/var/www/virtual/example.com --use-compress-program=pbzip2 --file=/var/www/virtual/example.com/backups/example.com-backup-2014.07.22-21-35.tar.bz2 --exclude=logs --exclude=phptmp --exclude=backups --exclude=domain_disable_page .
    [Tue Jul 22 21:36:19 2014] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    [Tue Jul 22 21:36:19 2014] [debug] iMSCP::File::mode: Changing mode for /var/www/virtual/example.com/backups/example.com-backup-2014.07.22-21-35.tar.bz2 to 644
    [Tue Jul 22 21:36:20 2014] [debug] iMSCP::File::owner: Changing owner and group for /var/www/virtual/example.com/backups/example.com-backup-2014.07.22-21-35.tar.bz2 to 1001:1001
    [Tue Jul 22 21:36:20 2014] [debug] iMSCP::Database::mysql::dumpdb: Dump examplesql into /var/www/virtual/example.com/backups/examplesql.sql
    [Tue Jul 22 21:36:20 2014] [debug] iMSCP::Execute::execute: Executing command: /usr/bin/mysqldump --opt --complete-insert --add-drop-database --allow-keywords --compress --default-character-set=utf8 --quote-names -h localhost -P 3306 -u root -ExAmPlE58asdasaSADASasd --result-file='/var/www/virtual/example.com/backups/examplesql.sql' examplesql
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::File::mode: Changing mode for /var/www/virtual/example.com/backups/examplesql.sql to 644
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::File::owner: Changing owner and group for /var/www/virtual/example.com/backups/examplesql.sql to 1001:1001
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::Execute::execute: Executing command: /usr/bin/pbzip2 --force '/var/www/virtual/example.com/backups/examplesql.sql'
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::Database::mysql::dumpdb: Dump example2sql into /var/www/virtual/example.com/backups/example2sql.sql
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::Execute::execute: Executing command: /usr/bin/mysqldump --opt --complete-insert --add-drop-database --allow-keywords --compress --default-character-set=utf8 --quote-names -h localhost -P 3306 -u root -ExAmPlE58asdasaSADASasd --result-file='/var/www/virtual/example.com/backups/example2sql.sql' example2sql
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::File::mode: Changing mode for /var/www/virtual/example.com/backups/example2sql.sql to 644
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::File::owner: Changing owner and group for /var/www/virtual/example.com/backups/example2sql.sql to 1001:1001
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::Execute::execute: Executing command: /usr/bin/pbzip2 --force '/var/www/virtual/example.com/backups/example2sql.sql'
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::Bootstrapper::unlock: Release exclusive lock on /tmp/imscp-backup-all.lock
    [Tue Jul 22 21:36:21 2014] [debug] iMSCP::Debug::END: Exit code: 0


    Thanks in advance.

  • I have some problems whith backup like that...but @my server just one directory in htdocs disappear...the name of directory is "logs"
    But at my server, no disk errors...just logs directory dissapears from backup file (its not a big problem because this directory contains only the mysqli errors logfile)
    this bug is present in multiple versions of i-mscp....1.0.3-1.1.11....higher versions not tested @ current time

  • If i remember right, the '/var/www/virtual/domain.com/logs/' folder is excluded from backups.

  • I had a look at the source. The logs folder is excluded. So it is normal, that the folder is not in the backups.

  • If you want to have the logs included and you are knowing what you are doing, you can comment the line where logs will be excluded in '/var/www/imscp/engine/backup/imscp-backup-all'
    But first of all, make a backup of the file !!!
    If you don't know what to do, i can help. ;-)