Backup with domain name

  • Hello,


    I copy all domain backup to another server in a folder.


    Now all backups are called "web-backup *".


    I now no longer know which backup belongs to a domain.


    Before 1.4x was still the domain name with in the backup.


    How can I insert the name or VU number or domainid in the backup.


    So it is then again uniquely assignable.


    Kind regards
    Viktor



    - Distribution: Debian | Release: 8.7 | Codename: jessie
    - i-MSCP Version: i-MSCP 1.4.4 | Build: 20170608 | Codename: Zimmer
    - Plugins installed: ClamAV (v. 1.2.1), Mailgraph (v 1.1.1), OpenDKIM (v 1.1.3), PanelRedirect (v 1.1.5) & SpamAssassin (v 1.1.1)
    - LetsEncrypt (v 3.2.1), PhpSwitcher (v 3.0.2), RoundcubePlugins (v 2.0.1)

    - Distribution: Debian | Release: 8.10 | Codename: jessie

    - i-MSCP Version: i-MSCP 1.5.3 | Build: 20180516 | Codename: Ennio Morricone

    - Plugins installed: ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), PanelRedirect (v 1.2.0) & SpamAssassin (v 2.0.1)

    - LetsEncrypt (v 3.6.0), PhpSwitcher (v 5.0.5), RoundcubePlugins (v 2.0.2)

  • Hello Viktor,


    I noticed the same with my backup script. I rewrote it to take the name of the domain from the directory and attach it to the final filename so that each file is named individually again.


    Regards Jörg

    (Ubuntu 16.04, i-MSCP 1.5.1, php-Fpm, Plugins: ClamAV, CronJobs, InstantSSH, LetsEncrypt, Mailgraph, Monitorix, OpenDKIM, PhpSwitcher, PolicydSPF, Postscreen, RecaptchaPMA, RoundcubePlugins, ServerDefaultPage, SpamAssassin, YubiKeyAuth)

  • Hallo,


    I send all with FTP "mput" so I can not rename it.


    I thin I must rename with a script all backups ?


    Kind regards
    Viktor

    - Distribution: Debian | Release: 8.10 | Codename: jessie

    - i-MSCP Version: i-MSCP 1.5.3 | Build: 20180516 | Codename: Ennio Morricone

    - Plugins installed: ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), PanelRedirect (v 1.2.0) & SpamAssassin (v 2.0.1)

    - LetsEncrypt (v 3.6.0), PhpSwitcher (v 5.0.5), RoundcubePlugins (v 2.0.2)

  • Hi,


    yes I guess you have to create a script which renames or repacks everything before you transfer it to your backup location. I use the script (collects all backups to one folder named by date, creates subfolder by customer and then transfers folder) below to transfer all backups via rsync - you can try to adapt it to use with mput:


    If mput cannot transfer folders you could tar the backup_folder before transfering.


    Regards Jörg

    (Ubuntu 16.04, i-MSCP 1.5.1, php-Fpm, Plugins: ClamAV, CronJobs, InstantSSH, LetsEncrypt, Mailgraph, Monitorix, OpenDKIM, PhpSwitcher, PolicydSPF, Postscreen, RecaptchaPMA, RoundcubePlugins, ServerDefaultPage, SpamAssassin, YubiKeyAuth)

  • Hallo,


    on my test server I edit the Perl script "imscp-backup-all".


    I put the domain_id in the backup name.


    I see this night it is working.


    When not I must use your script.


    Thanks
    Viktor

    - Distribution: Debian | Release: 8.10 | Codename: jessie

    - i-MSCP Version: i-MSCP 1.5.3 | Build: 20180516 | Codename: Ennio Morricone

    - Plugins installed: ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), PanelRedirect (v 1.2.0) & SpamAssassin (v 2.0.1)

    - LetsEncrypt (v 3.6.0), PhpSwitcher (v 5.0.5), RoundcubePlugins (v 2.0.2)

  • @Viktor


    I can readd the domain name if if you want.

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

  • @Viktor


    I can readd the domain name if if you want.


    Hello Nuxwin,


    yes please do it.


    Kind regards
    Viktor

    - Distribution: Debian | Release: 8.10 | Codename: jessie

    - i-MSCP Version: i-MSCP 1.5.3 | Build: 20180516 | Codename: Ennio Morricone

    - Plugins installed: ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), PanelRedirect (v 1.2.0) & SpamAssassin (v 2.0.1)

    - LetsEncrypt (v 3.6.0), PhpSwitcher (v 5.0.5), RoundcubePlugins (v 2.0.2)

  • @Viktor


    Will be ok like this ?


    Shell-Script
    1. root@xenial:/usr/local/src/imscp# ls -la /var/www/virtual/bbox.nuxwin.com/backups/
    2. total 48
    3. drwxr-x--- 2 vu2003 vu2003 4096 juin 12 23:57 .
    4. drwxr-x--- 12 vu2003 vu2003 4096 juin 12 00:32 ..
    5. -rw-r----- 1 vu2003 vu2003 381 juin 12 23:57 mail-backup-alias.bbox.nuxwin.com-2017.06.12-23-57.tar.bz2
    6. -rw-r----- 1 vu2003 vu2003 382 juin 12 23:57 mail-backup-bbox.nuxwin.com-2017.06.12-23-57.tar.bz2
    7. -rw-r----- 1 vu2003 vu2003 30962 juin 12 23:57 web-backup-bbox.nuxwin.com-2017.06.12-23-57.tar.bz2
    8. root@xenial:/usr/local/src/imscp#

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

  • A fix has been added in our development branch. See https://github.com/i-MSCP/imsc…16ec6e9780fbc88bd9ee166dc
    This fix will be part of next release.


    Thank for your report.
    Thread closed.

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