SOLVED Restore multiple accounts using one command

Jaro747

Member
Jan 23, 2018
20
1
3
Polska
cPanel Access Level
Root Administrator
Hello

I try restore multiple account using command

first step

ls *.tar.gz /home > cat.txt;

++++++++++++++++
cat.txt file have lines

user1.tar.gz
user2.tar.gz ( account exist )
user3.tar.gz
+++++++++++++++++

second

for i in `cat cat.txt`; do /scripts/restorepkg $i; done;

the problem is when account exist and command is terminated

how to force to bypass an existing account and force command to continue next account from cat.txt


Regards
 
Last edited by a moderator: