LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-01-2006, 05:48 AM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 495

Rep: Reputation: 34
make an exception when doing rsync


HI

I want to rsync -e ssh -av /home/* root@noah:/home this is works, works to good.

Thing is this file system is enable with quota on both the systems (Different quota sizes).

These machines are not identical machines

How do I stop quota.usr and quota.grp files from sinking (Make an exception out of these two files)?

Regards

Asanka
 
Old 08-01-2006, 08:32 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,320

Rep: Reputation: 141Reputation: 141
rsync -e ssh -av /home/* --exclude=quota* root@noah:/home
 
Old 08-01-2006, 09:26 PM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 495

Original Poster
Rep: Reputation: 34
HI kilgoretrout so thats where I went wrong "=" sing in I though this is only to use with z option.

Thanks

Best regards

Asanka
 
Old 08-01-2006, 09:35 PM   #4
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 495

Original Poster
Rep: Reputation: 34
hi acid_kewpie

I only posted this once and edited it and save it again.

Regards
Asanka
 
Old 08-03-2006, 01:33 AM   #5
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 495

Original Poster
Rep: Reputation: 34
Hi

How do I make a back up of a remote server directory in to a single file using rsync.

And is there a another way to do this

Regards

Asanka
 
Old 08-03-2006, 12:30 PM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,320

Rep: Reputation: 141Reputation: 141
rsync the remonte server directory to your backup box then tar the directory on your backup box which makes a single archive file and then delete the rsynced directory on the backup box.
 
Old 08-03-2006, 09:30 PM   #7
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 495

Original Poster
Rep: Reputation: 34
to do this I would need almost towies the space till I delete the source, cant I make a tar copy directly at the time of rsync with out just rsync and then doing the tar.

rsync | tar like

and restore doing the oposit
 
Old 08-03-2006, 09:45 PM   #8
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,320

Rep: Reputation: 141Reputation: 141
Did you even try to google this??? This took me two seconds to find:

http://www.hostlibrary.com/Remotebac...on-how-to.html

http://www.bigbold.com/snippets/posts/show/1337
 
Old 08-03-2006, 11:01 PM   #9
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 495

Original Poster
Rep: Reputation: 34
yah I did could not find what I wanted

Regards
Asanka
 
Old 08-10-2006, 12:00 AM   #10
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 495

Original Poster
Rep: Reputation: 34
Hi

My ldap database is in /var/lib/ldap directory, till I can get the ldap replication (it is going nuts) working can I do rsync to keep the ldap databases up to date.

rsync -e ssh -Uav /var/lib/ldap/* noah:/var/lib/ldap

Regards

Asanka
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make RSYNC skip a directory due to error message ArchW Linux - Networking 5 07-13-2006 10:26 AM
help createing exception class from base STL exception qwijibow Programming 4 04-20-2005 05:23 AM
make rsync output deleted files? hawarden Linux - Software 8 03-18-2005 12:24 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
Runtime Exception vs. Exception mikeshn Programming 1 09-22-2002 05:33 AM


All times are GMT -5. The time now is 06:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration