sebastianfeldmann / phpbu

PHP Backup Utility - Creates and encrypts database and file backups, syncs your backups to other servers or cloud services and assists you monitor your backup process
https://phpbu.de
Other
1.29k stars 110 forks source link

Incremental Backup TAR Compression Restore #335

Open mfmaut opened 1 year ago

mfmaut commented 1 year ago

Hi!

I have a conf file with 2 Backups, one MySQL Dump and one Incremental Directory Backup. When I run --restore in the directories i get "backup requires exactly one source config".

Is there even a --restore option for incremental backups? And if yes, should I set up the Config File for MySQL separate to avoid the Error above?

My current conf File:


   /<backups>
     /<backup name="mysqldump">
       /<source type="mysqldump">
       /<option name="databases" value="xxxxx" />
       /<option name="user" value="xxxxx" />
       /<option name="password" value="xxxxx" />
         /<option name="host" value="localhost" />
  /<option name="port" value="3306" />
       /</source>
       /<target dirname="/home/onedrive/mysql-backup/" filename="mysqldump-%Y%m%d-%H%i.sql"  compress="gzip" />
     /</backup>
     /<backup name="xxxxxxxx">
       /<source type="tar">
       /<option name="path" value="/home/www/xxxxxxx/" />
       /<option name="incrementalFile" value="/home/onedrive/metadata.snar" />
       /<option name="ignoreFailedRead" value="true"/>
       /<option name="exclude" value="cache,var/cache,home/www/lxxxxxxxxx.com/var/cache/"> /</option>
       /</source>
       /<target dirname="/home/onedrive/" filename="files-%Y%m%d-%H%i.tar"  compress="gzip" />
     /</backup>
  /<backups>

Even when i delete the MySQL Backup from the Conf i get those Error

thanks :)