Backup: Option to exclude Trash (SKINS)

Version 1.61.4


Both the Admin Level and User Level backups will now offer a "Deleted Trash Data" checkbox. This controls the inclusion of ~/.trash in the backup/home.tar.gz, within the main backup file. The CMD_ADMIN_BACKUP and CMD_SITE_BACKUP will now be upgraded from: form_version=3 to: form_version=4 Where any form_version less than 4 will automatically have "select13=trash" selected, if "select0=domain" is selected. Anything from 4 an up will require select13=trash to be checked/passed if that value is desired. There is also a new internal directadmin.conf option: skip_trash_in_backups=0 where it can be set to 1 to always exclude it for all backups, regardless checkbox. Keep in mind that the 13 in "select13" is not important. Only that there are not any duplciate selectX numbers, as DA does not handle duplicate select[] form values, unless told to do so in the back-end (FileManager) ======================== BACKUPS The user.admin.fred.tar.gz backup files will now include: trash trash_aware with or without "trash", depending on the checkbox, but this version of DA an onwards will include the trash_aware option. Absence of trash WITH trash_aware will eventually exclude ~/.trash from being restored. Currently (1.61.4) the ~/.trash folder will always be restored as the home.tar.gz is simply extracted into /home/user, without any per-file choices. So for the restore (at the moment), trash will always be restored if present in the backup. ======================== UPDATE the scripts/ will call the action=convert&cronbackups, as it always does, but the code this triggers will now update all crons to enable "trash" if "domain" is enabled. ======================== SKINS /usr/local/directadmin/data/skins/enhanced/user/site_backup.html /usr/local/directadmin/data/skins/enhanced/admin/admin_backup.html /usr/local/directadmin/data/skins/enhanced/admin/admin_backup_modify.html Update the form_version=4 and include select13=trash. The control token is called |TRASHON| to have it check or not in the modify page. ---- R27277 EVO1932

Interested to try DirectAdmin? Get a 30-day Free Trial!