I have a vps server that I would like to backup using tar. I currently use this command to do so, and it works very well for me right now.
tar cvpjf backup.tar.bz2 --exclude=/proc --exclude=/lost+found --exclude=/backup.tar.bz2 --exclude=/mnt --exclude=/sys /
however, if i would like to restore this tar on a new vps system, this won't work because it will mess up the network settings (ip, interfaces, etc.)
how can i modify this tar command so that i can tar one server, and decompress it on another so no problem and it will still maintain my data, iptables,software, cron jobs, groups, users etc.
Is that possible?