How can i restore from a backup.tgz
file generated from another linux server on my own server? I tried the command the following command:
tar xvpfz backup.tgz -C /
The above command worked, but it replaced the existing system files which made my linux server not to work properly.
How can i restore without running into trouble?
Best Answer
You can use
--skip-old-files
command to telltar
not to overwrite existing files.You could still run into problem with the backup files, if the software versions are different between the two servers. Some data file structure changes might have happeneed, and things might stop working.
A more refined backup process should be developed.