SUSE / openSUSE This Forum is for the discussion of Suse Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-25-2005, 12:58 AM
|
#1
|
LQ Newbie
Registered: Nov 2005
Distribution: SuSE
Posts: 10
Rep:
|
Archiving
hi,
How can I archive or backup my /home directory on a daily basis automatically?
Please suggest me some methodologies,
Naveen
|
|
|
11-25-2005, 07:51 AM
|
#2
|
Senior Member
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199
Rep: 
|
1. create a shell script, which tars and compresses your home directory.
2. execute that shell script with cron daily.
|
|
|
11-25-2005, 09:48 PM
|
#3
|
LQ Newbie
Registered: Nov 2005
Distribution: SuSE
Posts: 10
Original Poster
Rep:
|
Ok, but I want to have only incremental backup
Dow you know how that is done?
And can you please be more elaborative with commands and other stuff? I am new to this
Please,
Thanks
Naveen
Last edited by naveenlinux; 11-25-2005 at 09:57 PM.
|
|
|
11-26-2005, 11:31 AM
|
#4
|
Member
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279
Rep:
|
There are lots of pre-made backup scripts out on the net if you'd just google for something like "tar backup script". I found one here:
Automating backups with tar
Dennisk
|
|
|
11-30-2005, 02:35 AM
|
#5
|
LQ Newbie
Registered: Nov 2005
Distribution: SuSE
Posts: 10
Original Poster
Rep:
|
Hi Dennisk,
I tried the script that you gave in the link.
Yesterday i created a backup by name nav-Tue.tar manually using "tar". (nav is my system name)
And also executed the command:
"date +%d%b < /backups/last-full/nav-full-date" where i created the file nav-full-date as text file before I could use the above command. It displayed me 29Nov on the shell itself.
Now there is only one tar that is created yesterday. I dont find nav-Wed.tar in the folder backups.
And one more thing. I have commented Monthly full backup lines. So enabled only Weekly full Backup and incremental backups.
Do I need to check if the Cron.daily is running or not? And if so how do I do that?
OR is there any other problem?
Please reply
|
|
|
11-30-2005, 04:01 AM
|
#6
|
LQ Newbie
Registered: Nov 2005
Distribution: SuSE
Posts: 10
Original Poster
Rep:
|
This is additional info:
When I run the command "cron" I get a message:
cron: can't lock /var/run/cron.pid, otherpid may be 4826: Resource temporarily unavailable
I dont hav crond. I have cron in /usr/sbin
the contents of /etc/crontab are:
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
#
# check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
#
-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1
59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
14 4 * * * root rm -f /var/spool/cron/lastrun/cron.daily
29 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
44 4 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
etc/init.d/ contains cron. so i suppose the cron enabled to start at boot
|
|
|
12-04-2005, 04:51 PM
|
#7
|
Member
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, Debian
Posts: 278
Rep: 
|
:~>crontab -l lists cron jobs for the current user.
I would set your backup script to run under user instead or root. Also, it's generally not a good idea to edit crontabs directly
to edit: use crontab -e
|
|
|
All times are GMT -5. The time now is 02:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|