Restore multiple accounts from new backups, by first letter?
Hello,
Please, I know it's possible to restore multiple backups by date:
RESTORE_FROM_DATE="2017-08-31"; BACKUP_TYPE="daily"; if [ $BACKUP_TYPE="daily" ]; then BACKUP_BASE="/backup/$RESTORE_FROM_DATE/accounts/"; else BACKUP_BASE="/backup/$BACKUP_TYPE/"$RESTORE_FROM_DATE"/accounts/"; fi; for CP_ACC in $(find "$BACKUP_BASE" -type f -name '*.tar.gz' |awk -F/ '{print $5}' |sed 's/.tar.gz//g'); do /usr/local/cpanel/bin/backup_restore_manager add user="$CP_ACC" restore_point="$RESTORE_FROM_DATE" mail_config=1 mysql=1 subdomains=1; done
But is it possible to restore by group of initial letters?
a*
b*
c*
....
?
I want to restore the accounts in batches, to make my work easier ... but I do not know if it's possible to do this.
Thank You,
Luiz Passarelli
Please sign in to leave a comment.
Comments
0 comments