Ticket #5121 (closed Feature Requests: fixed)

Opened 2 years ago

Last modified 2 years ago

make dumpastdb/restoreastdb 'cli frienldy'

Reported by: p_lindheimer Assigned to: mbrevda
Priority: minor Milestone: 2.10
Component: Backup & Restore Version: 2.9-branch
Keywords: Cc:
Confirmation: Confirmed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

currently the two utility functions in backup used to dump and restore the astdb are designed to be used together with ampbackup.php in such a way that they are not 'user friendly' for someone to use independently. The basically expect an argument which references a current backup set being saved/restored in a format that requires access that looks something like this (in the case of restoreadtdb):

$dump = file_get_contents("/tmp/ampbackups.".$argv[1]."/astdb.dump");

where the argument is the date code of a backup tarball that has been exploded into /tmp in the give directory (or being saved there if dumpastdb where examined).

We need to modify these functions and the corresponding ampbackup.php, or otherwise add an option such that they can be easily run independently as a utility tool form the CLI without the expectation of the specific directory and naming structure assumed.

Change History

04/30/11 19:51:44 changed by mbrevda

funny, was just thinking the same. No need for separate scripts, imho, just bake it in to the backup script

05/02/11 15:27:18 changed by p_lindheimer

go for it :)

06/05/11 10:33:41 changed by mbrevda

  • owner set to mbrevda.

08/17/11 09:11:05 changed by mbrevda

  • status changed from new to closed.
  • resolution set to fixed.