Backup Data with Cron on Linux

Post on 16-Apr-2017

1.021 views 0 download

Transcript of Backup Data with Cron on Linux

www.itolaleng.wordpress.com tolaleng.sna@gmail.com

Back Data on Linux with Cron

Create backup projecta. How create Folder workdoc in path “/var/”?

Go to the var located and create the folder by used command type:SA:/var # md workdoc

a. How to create Folder such as: AdminDoc, ITDoc, TeacherDoc in Folder name: “/var/workdoc”? Then continue to the workdoc located to create the

AdminDoc, ITDoc, TeacherDoc.

Prepared by LENG Tola,Email: tolaleng.sna@gmail.com, Tel: +855968814005Website: http://itolaleng.wordpress.com

www.itolaleng.wordpress.com tolaleng.sna@gmail.com

a. How to create file admininfo.txt to folder AdminDoc, create file ITinfo.txt to folder ITDoc, and create file Teacherinfo.txt to folder TeacherDoc?

The types command for used to create txt file: touch eacher file in other folder and extensions file.

Prepared by LENG Tola,Email: tolaleng.sna@gmail.com, Tel: +855968814005Website: http://itolaleng.wordpress.com

www.itolaleng.wordpress.com tolaleng.sna@gmail.com

/home/backupdoc.tgz every Sunday time 10:30PM?

This step we used that types command that: tar cvzf admininfo.txt /var/AdminDoc/*

Prepared by LENG Tola,Email: tolaleng.sna@gmail.com, Tel: +855968814005Website: http://itolaleng.wordpress.com

www.itolaleng.wordpress.com tolaleng.sna@gmail.com

Prepared by LENG Tola,Email: tolaleng.sna@gmail.com, Tel: +855968814005Website: http://itolaleng.wordpress.com

www.itolaleng.wordpress.com tolaleng.sna@gmail.com

Prepared by LENG Tola,Email: tolaleng.sna@gmail.com, Tel: +855968814005Website: http://itolaleng.wordpress.com