LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   make an exception when doing rsync (https://www.linuxquestions.org/questions/linux-general-1/make-an-exception-when-doing-rsync-469660/)

procfs 08-01-2006 05:48 AM

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

kilgoretrout 08-01-2006 08:32 AM

rsync -e ssh -av /home/* --exclude=quota* root@noah:/home

procfs 08-01-2006 09:26 PM

HI kilgoretrout so thats where I went wrong "=" sing in I though this is only to use with z option.

Thanks

Best regards

Asanka

procfs 08-01-2006 09:35 PM

hi acid_kewpie

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

Regards
Asanka

procfs 08-03-2006 01:33 AM

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

kilgoretrout 08-03-2006 12:30 PM

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.

procfs 08-03-2006 09:30 PM

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

kilgoretrout 08-03-2006 09:45 PM

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

procfs 08-03-2006 11:01 PM

yah I did could not find what I wanted

Regards
Asanka

procfs 08-10-2006 12:00 AM

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


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