LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-03-2003, 09:05 AM   #1
p0 theed
Member
 
Registered: Jun 2003
Location: USA
Distribution: RedHat 8, 9.0
Posts: 37

Rep: Reputation: 15
Backing up of a RH8 server without root axx


Hey everyone.

our companies other location has a small network of about 6 or 7 windows computers running with a RH8.0 server... Each of the people down there have their own private space on the server. The one girl who does the inventory of the parts keeps everything important in her directory and everynight she's backing up only her directory to a CD.

What im trying to figure out is how she can back up everyones personal directories from her XP machine. She doesn't have root access and I was thinking that she could possibly login to the server through SSH and have access to those folders that way? I've never setup or used ssh so I'm not sure...

Does anyone have any ideas of how she could get access to these folders to back them up every night, without giving her root access to the whole server?

thanks
 
Old 07-03-2003, 12:36 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Why not run a cron job (as root) that backs up the directories to a tar.gz file that can be placed in the persons home directory. This can then be picked up via samba and burnt to a CD. You could even password protect the file for extra security (ie she can't see peoples files)
 
Old 07-03-2003, 02:27 PM   #3
p0 theed
Member
 
Registered: Jun 2003
Location: USA
Distribution: RedHat 8, 9.0
Posts: 37

Original Poster
Rep: Reputation: 15
i'll have to research cron job some but would it be possible to have the back up run at say 4pm everyday? can it be automated or would someone have to login as root and run the command?
 
Old 07-03-2003, 02:38 PM   #4
p0 theed
Member
 
Registered: Jun 2003
Location: USA
Distribution: RedHat 8, 9.0
Posts: 37

Original Poster
Rep: Reputation: 15
Just did some reading on cron job / crontab and I think this would be the perfect solution.
 
Old 07-03-2003, 03:13 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Quote:
Originally posted by p0 theed
i'll have to research cron job some but would it be possible to have the back up run at say 4pm everyday? can it be automated or would someone have to login as root and run the command?
Yes cron is like Microsofts Task Scheduler you can use it to run a program/script when you want.
 
Old 07-03-2003, 03:26 PM   #6
p0 theed
Member
 
Registered: Jun 2003
Location: USA
Distribution: RedHat 8, 9.0
Posts: 37

Original Poster
Rep: Reputation: 15
great thank you very much
 
Old 07-03-2003, 03:26 PM   #7
p0 theed
Member
 
Registered: Jun 2003
Location: USA
Distribution: RedHat 8, 9.0
Posts: 37

Original Poster
Rep: Reputation: 15
just need to learn how to write a script
 
Old 07-03-2003, 03:40 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you only want one tar file then you won't need a script just a command in a crontab like:
Code:
* 16 * * * tar -cvzf /home/some_user/backup.tar.gz /home/another-user /home/some_one_else /var/www 2>&1 > /var/log/backup_last.log
Personnaly I would run the job at 2am or something when users will not be accessing files but that is up to you.
 
Old 07-03-2003, 03:46 PM   #9
p0 theed
Member
 
Registered: Jun 2003
Location: USA
Distribution: RedHat 8, 9.0
Posts: 37

Original Poster
Rep: Reputation: 15
right the middle of the night is what i planned on doing, then she will be able to back up in the morning when she gets there.

and one tar file would be sufficient.

and i understand everything in that code except for the /var/www 2>&1.

could you tell me what that does?
 
Old 07-03-2003, 03:49 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
/var/www is just another directory you may wish to backup ie if you had a website etc (it was just an example)

2>&1 directs stderr (standard error stream) to stdout (standard output stream). In turn the standard output stream is output to a logfile containing the last backup job (just incase you have problems).
 
Old 07-03-2003, 03:58 PM   #11
p0 theed
Member
 
Registered: Jun 2003
Location: USA
Distribution: RedHat 8, 9.0
Posts: 37

Original Poster
Rep: Reputation: 15
ah i gotcha.. Okay I'll try that out on monday and see what happens. Thanks for your help

Now its time to go enjoy the weekend
 
Old 07-03-2003, 04:00 PM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Have a good weekend - post any problems you have and I'll see what I can do.
 
Old 07-07-2003, 08:05 AM   #13
p0 theed
Member
 
Registered: Jun 2003
Location: USA
Distribution: RedHat 8, 9.0
Posts: 37

Original Poster
Rep: Reputation: 15
the 16 is the hours in military time correct?
 
Old 07-07-2003, 09:18 AM   #14
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Just add 12 to any hour and you have it's military equivalent.
4+12=16
 
Old 07-07-2003, 12:26 PM   #15
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Quote:
Originally posted by bax
Just add 12 to any hour and you have it's military equivalent.
4+12=16
Unless it is morning

Yes it is 16:00 hours - eg 4pm. Just use 4 for 4am.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fstab giving ntfs RO axx to all users? martinj Linux - Newbie 5 06-12-2005 10:07 AM
Backing Up Server stlyz3 Linux - Software 4 06-04-2005 10:44 PM
Backing Up Server stlyz3 Linux - Enterprise 1 06-04-2005 04:46 PM
Backing up a Slackware server technician Slackware 3 03-09-2005 01:50 PM
Backing up Linux to a remote server! DigiCrime Linux - General 5 12-10-2002 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration