PDA

View Full Version : Restore massive accounts from backup tar.gz files


bakon
11-19-2012, 09:47 PM
Is there any way to restore massive from tar.gz files?

We have about 50 tar.gz files from a remote server

We don't want to do manualy at Ispmanager:
WHILE we have tar.gz files DO
1) Add new user at server
2) "User import" > "Local archive"
ENDWHILE

Is there any way to tell from SSH for example:
restore_account(file1.tar.gz)
restore_account(file2.tar.gz)
...
so we can do an script:
WHILE tar.gz DO
restore_account(XXX.tar.gz)
ENDWHILE

Thank you.

slava
11-20-2012, 10:58 PM
Hello, use /usr/local/ispmgr/sbin/pbackup frestore

# /usr/local/ispmgr/sbin/pbackup
Copyright (C) 2010 ISPsystem
Usage:
pbackup [options] backup <plan>
pbackup [options] restore <plan> <backup date> [file]
pbackup [options] orestore <plan> <backup date> <object type> <object name>
pbackup [options] urestore <plan> <backup date> <user>
pbackup [options] frestore <path>
pbackup [options] download <plan> <backup date> [file]
pbackup [options] delete <plan> <backup date>
pbackup [options] scheck <storage type> <storage path>
pbackup [options] userdel <storage type> <storage path> <user>
Options:
-h show the help and exit
-r overwrite archive
-u specify user
-n do not delete temporary directory
-c restore configuration only. The option can be used in conjunction with 'orestore' only
-e do not add extra headers while downloading

bakon
11-21-2012, 12:17 AM
Hello, use /usr/local/ispmgr/sbin/pbackup frestore

Where can we find documentation about it?
Thank you.

bakon
11-23-2012, 07:52 PM
It doesn't works...