ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   General technical discussion (http://forum.ispsystem.com//forumdisplay.php?f=8)
-   -   Restore massive accounts from backup tar.gz files (http://forum.ispsystem.com//showthread.php?t=2052)

bakon 11-19-2012 09:47 PM

Restore massive accounts from backup tar.gz files
 
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

Quote:

# /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

Documentation about it
 
Quote:

Originally Posted by slava (Post 6459)
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...


All times are GMT +2. The time now is 07:23 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.