Sunday, December 16, 2012

How To Backup My CentOS


I guess backup ur system is an important things to do. We always try and error. who know when we try and error it's goes to permanent error to ur system. So i highlight this in my new post. Because i want to remember doing this. hehe.
i will do this in my MAC . not in my centOS.

cmd ::

cd VirtualBox\ VMs/

   Aaliyahs-MacBook-Pro:VirtualBox VMs aaliyahdora$ 
   Aaliyahs-MacBook-Pro:VirtualBox VMs aaliyahdora$ ls
   >> CentOS6

/VirtualBox VMs$ tar cjf CentOS6-`date '+%d-%B-%Y'`.tar.bz2 CentOS6/
/VirtualBox VMs$ ls |grep bz2

** the dated will be auto in. ( i fill the cmd with dated when i 
   first try this .. :X )

   Aaliyahs-MacBook-Pro:VirtualBox VMs aaliyahdora$ ls
    >> CentOS6  CentOS6-24-November-2012.tar.bz2

   du -sh ( to check file size )

   Aaliyahs-MacBook-Pro:VirtualBox VMs aaliyahdora$ du -sh 
   CentOS6-24-November-2012.tar.bz2

   >> 328M CentOS6-24-November-2012.tar.bz2

   Aaliyahs-MacBook-Pro:VirtualBox VMs aaliyahdora$ du -sh CentOS6

   >> 1.1G CentOS6

psst : have free to try this.. :)