I had a serious bad chain of events and ended up losing user data. I send the backup drive to a recovery service and they have successfully recovered all the Admin backups, but they are not in the correct file name format.
For example, DirectAdmin saves the backup file name as user.reseller.username.tar.gz (using the actual reseller and username of course). The reseller name is not important since they're all the same, but I need to recover the username and rename the files properly.
The data recovery service is returning the files to me as randomstuff.gz From the sample they sent me it looks like all the data is there, but I can't restore a file named "Pdijrldsjw.gz". I need to extract the username and rename the file in the user.reseller.username.tar.gz format.
It would be a great help if some of you linux wizards could give me a small script that will extract the username from the randomstuff.gz and then rename the file in the user.reseller.username.tar.gz DirectAdmin format.
I might not live long enough to do it manually.
Thank you very much in advance!
-Joe
For example, DirectAdmin saves the backup file name as user.reseller.username.tar.gz (using the actual reseller and username of course). The reseller name is not important since they're all the same, but I need to recover the username and rename the files properly.
The data recovery service is returning the files to me as randomstuff.gz From the sample they sent me it looks like all the data is there, but I can't restore a file named "Pdijrldsjw.gz". I need to extract the username and rename the file in the user.reseller.username.tar.gz format.
It would be a great help if some of you linux wizards could give me a small script that will extract the username from the randomstuff.gz and then rename the file in the user.reseller.username.tar.gz DirectAdmin format.
I might not live long enough to do it manually.
Thank you very much in advance!
-Joe