US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > General technical discussion

Notices

Reply
 
Thread Tools
Old 11-19-2012, 09:47 PM   #1
Member
 
Join Date: Jul 2004
Posts: 77
bakon
Send a message via ICQ to bakon
Default 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.
bakon is offline   Reply With Quote
Old 11-20-2012, 10:58 PM   #2
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

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
slava is offline   Reply With Quote
Old 11-21-2012, 12:17 AM   #3
Member
 
Join Date: Jul 2004
Posts: 77
bakon
Send a message via ICQ to bakon
Default Documentation about it

Quote:
Originally Posted by slava View Post
Hello, use /usr/local/ispmgr/sbin/pbackup frestore
Where can we find documentation about it?
Thank you.
bakon is offline   Reply With Quote
Old 11-23-2012, 07:52 PM   #4
Member
 
Join Date: Jul 2004
Posts: 77
bakon
Send a message via ICQ to bakon
Default

It doesn't works...
bakon is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:19 PM.