Wow. No need for expensive backup software. This method works like a charme. In combination with a crontab and grive this is the easiest and cheapest automated backup method ever. Thank you so so much for this video. You are awesome.
Sweet video. I hope i don't have to use it! Your explanation was 100% thorough and clear, you didn't ramble on or have an annoying intro, and your speaking skills are strong. Honestly a top 10 video for me on youtube. TH-camrs should use you as a reference on how to make a tutorial video.
Thank you, Sir. It is exactly what I thought is possible: a simple solution. I wondered if the xtract would cause the new location system to error out or fail upon reboot if something is not compatible. One would need to restore between identical versions of the same OS I suppose? My plan is to backup my VPS and be assured I can take it over to another hosting service should the need ever arise. Is you method a sane solution to my use case or should I consider a different approach?
how do i have to do this to migrate from one vps to another server? I only get errors after rebooting :( there has to be an easy way to migrate the server (with all users/groups, configurations and files)
excelent! this backup the entire server? and i can restore a copy to another server? with sql database and all exactly like the original? like a clone server
Yes, just tried myself on ubuntu budgie. Thus i dont know how it would be if i restored on a system with an other desktop environment or s.th. what i did exactly was reinstalling the system from scratch and then extracting the backup.tar.gz like described in the video.
This doesn't explain how to match the backup archive with the destination. If you installed software after the backup, the files will still remain. The only solution I've found is to boot into a live Linux distro, mount the local file system, delete every file under /, mount the drive containing backup, and restore the contents back into /. This is obviously not a good idea for SSD drives. Any suggestions on a better way of doing this?
And if when I was creating a tarball of a full system backup (/ and /home in my case) I was using Ubuntu Live DVD and I haven't excluded anything from either / or /home, then when I will be restoring the system again with the Live DVD, is it a must to use --numeric-owner switch in the tar command?
Thank for the video but can I Tar the root directory if the OS is running ? Will it having trouble tar the root directory if I am using tar command in the same linux OS to backup the whole system ?
Nice one, but i have some questions, can i take backup in server 1 and can i restore that in server 2 will it works?, if yes can i use the two different versions of Ubuntu, for example server 1 is 14.04 and server 2 is 16.04 will it works? my another question is can i access the backup files from my local Ubuntu machine? if yes can you please explain a bit? thank you !
Hi, great solution for backup and restore an entire server. Will this help to restore between VPS between different cloud service provider? For example AWS uses its own ubuntu distribution and Digital ocean uses its own distributions and what is the impact on network files and distribution files ? Thanks in advance
would this work if i was going to install cpanel to my server? Sorry newbie. Im trying to do a reinstall cpanel on my server but need to back up content on my current root so that when I do a reinstall I can recover whats on my server now. Is that possible? What do you recommend me doing?
What if you created new files between creating the back up and restoring it? You said unzipping the backup will overwrite all files. What about those files that were added in the meantime? They are junk after the backup is restored and they might interfere with the restored installation. How would you handle that?
+danobot Hi, just to clarify, any file created after the archive, will have no equivalent stored in the archive and thus will remain untouched. Therefore any new files you create will remain as they are, only files that are included in the backup would be overwritten. This would only be a problem if you were trying to restore onto a new installation on the same hardware, at which point only what was on the archive would be restored, that's why it's important to run a new backup when every you've made important changes or additions to your server. Hope this helps.
+Odd Random Thoughts yeah that makes sense. Kinda worried about forgotten junk files though. Do you reckon there's a way to diff the archive and the file system before restoring the backup to get rid of files that are not in the back up? (obviously excluding the directories that are not included in the backup like /dev)
+danobot Well what I would do if I wanted to restore the backup just as it was without including anything that had been added after it....Just do a clean install of ubuntu server and then extract the backup over that. That would eliminate any files that had been added after the backup had been created.
hi, great tutorial, BUT I have this error during RESTORE ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
Var D'ovoli when you're talking encrypting the backup you're envolving public/private key generation as well as creating a file with a passphrase etc. It can be somewhat overwhelming to the basic user. Not saying you are one of the basic users, but you may look into either openssl for creating your encryption or possibly symmetric encryption may be an option ie. tar -cz / | gpg -c -o backup.tgz.gpg the .gpg represents an encrypted archive. Hope this helps some.
Hi. when executing your command to backup my ubuntu server, at some point I got this: tar: /run/: file is on a different filesystem; not dumped /media/ /opt/ /sys/ tar: /sys/: file is on a different filesystem; not dumped What is it means?
tar (child): /path/to/yourbackupfilename.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now
Hi, yes to the best of my knowledge this should still work the same if you're using Ubuntu 16. It wouldn't hurt anything to try it and see though if you have a freshly installed machine. Let me know how it turns out if you would. Thanks for watching! :)
Wow. No need for expensive backup software. This method works like a charme. In combination with a crontab and grive this is the easiest and cheapest automated backup method ever. Thank you so so much for this video. You are awesome.
Hey man, I really appreciate your work here, explaining every single thing without raising me questions. Very nice!
Very very clear and concise video, thank you for this video. You definitely deserve much more subs !
Thank you very much! I didn't knew about the --one-file-system and have been excluding all directories manually. I'm gonna try this option as well :)
Sweet video. I hope i don't have to use it! Your explanation was 100% thorough and clear, you didn't ramble on or have an annoying intro, and your speaking skills are strong. Honestly a top 10 video for me on youtube. TH-camrs should use you as a reference on how to make a tutorial video.
WOW . Thank you Very very very much . simple clear . i can't find more words .
Thank you +Julia A for the kind words. I'm glad you found it helpful!
THIS WAS AWESOME!!! Perfect, this was exactly what I needed, thankyou!!
Thank you, Sir. It is exactly what I thought is possible: a simple solution. I wondered if the xtract would cause the new location system to error out or fail upon reboot if something is not compatible. One would need to restore between identical versions of the same OS I suppose? My plan is to backup my VPS and be assured I can take it over to another hosting service should the need ever arise. Is you method a sane solution to my use case or should I consider a different approach?
Thanks as always ! Super simple tutorial and well done!
hey bro thx lot you have helped me with my biggest problem
My Hero, Awesome video Thank You!
Great video would this backup databases and also settings for services I have made auto run thanks.
Excellent job! Thank you very much!
+John Stowers You are quite welcome, thanks for watching!
Thanks alot! very well explained. I'm currently in a trade for Microsystems and Networks, so this is really helpful! Thanks again :D
An excellent job, thanks for sharing. Really helpful.
how do i have to do this to migrate from one vps to another server? I only get errors after rebooting :( there has to be an easy way to migrate the server (with all users/groups, configurations and files)
Please I am also looking for the reply on @Perfect Prog question.
Is it possible to restore backup to another system?
i did exactly what he told me to do..everything worked but when i logged out i was unable to log back in after the back up
excelent! this backup the entire server? and i can restore a copy to another server? with sql database and all exactly like the original? like a clone server
Please answer this question @Odd Random Thoughts
Yes, just tried myself on ubuntu budgie. Thus i dont know how it would be if i restored on a system with an other desktop environment or s.th.
what i did exactly was reinstalling the system from scratch and then extracting the backup.tar.gz like described in the video.
This doesn't explain how to match the backup archive with the destination. If you installed software after the backup, the files will still remain. The only solution I've found is to boot into a live Linux distro, mount the local file system, delete every file under /, mount the drive containing backup, and restore the contents back into /. This is obviously not a good idea for SSD drives. Any suggestions on a better way of doing this?
And if when I was creating a tarball of a full system backup (/ and /home in my case) I was using Ubuntu Live DVD and I haven't excluded anything from either / or /home, then when I will be restoring the system again with the Live DVD, is it a must to use --numeric-owner switch in the tar command?
Thank for the video but can I Tar the root directory if the OS is running ? Will it having trouble tar the root directory if I am using tar command in the same linux OS to backup the whole system ?
Good tutorial. Thank you very much.
Nice one, but i have some questions, can i take backup in server 1 and can i restore that in server 2 will it works?, if yes can i use the two different versions of Ubuntu, for example server 1 is 14.04 and server 2 is 16.04 will it works? my another question is can i access the backup files from my local Ubuntu machine? if yes can you please explain a bit? thank you !
Please tell how to exclude more than one directory
thanks man, that helped me. cheers!
You're welcome!
Hi, great solution for backup and restore an entire server.
Will this help to restore between VPS between different cloud service provider? For example AWS uses its own ubuntu distribution and Digital ocean uses its own distributions and what is the impact on network files and distribution files ?
Thanks in advance
thanks - very useful
Nice! perfectly explained
***** Thanks for the kind words. I hope you found it helpful. :)
would this work if i was going to install cpanel to my server? Sorry newbie. Im trying to do a reinstall cpanel on my server but need to back up content on my current root so that when I do a reinstall I can recover whats on my server now. Is that possible? What do you recommend me doing?
do u have a discord? once it gets to efi it halts with previous errors and just goes to grub only after reboot
Interesting. Does this keep file permissions and existing users?
very good
Big Help - good job
ty so much for this one ;)
Thank you so so so much!!!!!!!!!
Glad it helped!
What if you created new files between creating the back up and restoring it? You said unzipping the backup will overwrite all files. What about those files that were added in the meantime? They are junk after the backup is restored and they might interfere with the restored installation. How would you handle that?
+danobot Hi, just to clarify, any file created after the archive, will have no equivalent stored in the archive and thus will remain untouched. Therefore any new files you create will remain as they are, only files that are included in the backup would be overwritten.
This would only be a problem if you were trying to restore onto a new installation on the same hardware, at which point only what was on the archive would be restored, that's why it's important to run a new backup when every you've made important changes or additions to your server. Hope this helps.
+Odd Random Thoughts yeah that makes sense. Kinda worried about forgotten junk files though. Do you reckon there's a way to diff the archive and the file system before restoring the backup to get rid of files that are not in the back up? (obviously excluding the directories that are not included in the backup like /dev)
+danobot Well what I would do if I wanted to restore the backup just as it was without including anything that had been added after it....Just do a clean install of ubuntu server and then extract the backup over that. That would eliminate any files that had been added after the backup had been created.
wow what a champ
Will this work on ubuntu server 18.04 as well or is there another command line for 18.04
hi, great tutorial, BUT I have this error during RESTORE
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
service mysql restart also could NOT work. [fail]
Can you use this method to restore your broken server to new metal?
how would I add encryption to the backup and not lose any permissions or remove leading / from file names? nice video by the way.
Var D'ovoli when you're talking encrypting the backup you're envolving public/private key generation as well as creating a file with a passphrase etc. It can be somewhat overwhelming to the basic user. Not saying you are one of the basic users, but you may look into either openssl for creating your encryption or possibly symmetric encryption may be an option ie. tar -cz / | gpg -c -o backup.tgz.gpg
the .gpg represents an encrypted archive. Hope this helps some.
Wish I knew this earlier
Is it possible to tar the whole root directory and restore it after formatting the OS?
Excellent!
after restore backup an other server ssh not login can you help ??
easy and great
Thanks!!!!
still actual 👍
bad ass
thanks!
Too late :(
I run the command: "sudo chmod 755 -R / "
(YES, IN THE F*CKING ROOT directory)
Thanks.
Hi. when executing your command to backup my ubuntu server, at some point I got this:
tar: /run/: file is on a different filesystem; not dumped
/media/
/opt/
/sys/
tar: /sys/: file is on a different filesystem; not dumped
What is it means?
hello sir i m not able to restored backup
tar (child): /path/to/yourbackupfilename.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Does this still hold up with Ubuntu 16?
Hi, yes to the best of my knowledge this should still work the same if you're using Ubuntu 16. It wouldn't hurt anything to try it and see though if you have a freshly installed machine. Let me know how it turns out if you would. Thanks for watching! :)
Thanks very helpful! Like and from me subscribe.
У меня по Английскому двойка была(((
Thank you so much for this video!
You're very welcome!
Awesome video, thank you.
Glad you liked it!
Thank you
Thank you...