Hi there,
Currently writing a script file that backs up and restores files.
Backup is working fine, but my restore command is giving me grief!
What im trying to achieve is the restore a backup from the backups folder to the root folder , ~, and rename the restored file to "Restore-[Backupname]"
This is the command currently but i think my the arrangement is all wrong, help!
Its probably total rubbish now as iv been messing with it to try and make it work.
I think i have the name of the file, the destination and the destination name messed up.
Thanks in advance!
Em
Currently writing a script file that backs up and restores files.
Backup is working fine, but my restore command is giving me grief!
What im trying to achieve is the restore a backup from the backups folder to the root folder , ~, and rename the restored file to "Restore-[Backupname]"
This is the command currently but i think my the arrangement is all wrong, help!
Code:
tar -xvf ~/scriptfiles/backups/"$filename" $filename >> ~/scriptfiles/logfiles/"Restore-$filename"
Its probably total rubbish now as iv been messing with it to try and make it work.
I think i have the name of the file, the destination and the destination name messed up.
Thanks in advance!
Em