Sponsored Content
Full Discussion: Lsyncd Configuration
Top Forums UNIX for Beginners Questions & Answers Lsyncd Configuration Post 303038617 by Neo on Sunday 8th of September 2019 12:44:29 AM
Old 09-08-2019
Quote:
Originally Posted by arun_adm

Thanks Neo for your reply.

Could you please share the rsync and cron setup you used in your usecase? I can give a try with that.

Here is the rsync command which i used to run manually to sync the data.

Code:
nohup /usr/bin/time --format='Elapsed Time = %e seconds' rsync -avh --exclude="lost+found" --exclude=".snapshot" --info=progress2 --stats /src/data/01/* /tgt/data/01/ > /root/rs-logs/data_01-`date +%Y%m%d-%H%M`.log &

I have my rsync command(s) in a crontab script(s), like so, for example:

Code:
30 23 * * * /usr/bin/nice -n 19 /usr/local/bin/sync_dumps > /dev/null 2>&1

... where my script sync_dumps contains an rsync command set up for my particular case.

If the files have not changed, rsync will log and exit, of course.

This is a classic "polling" versus "pushing" problem, and I prefer to keep this simple with rsync and cron. The frequency of my backups is based on my risk model and my risk model for this instance says that backing up to a remote server once a day is fine. Your risk model may be different and requires a different backup frequency.

FWIW, I never (rarely, is a better word, I guess) use additional processes to perform tasks which I can perform in a more simpler way, so I use rsync and not lsyncd, but that's just me. I like simple. It's easily to maintain, update and troubleshoot if there are problems (or port to a new server when a datacenter change is required).
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Configuration

Can anyone please tell me anything about the following: AIX O/S - IBM RS6000 server I want to know where I can go to check and see how much RAM is intalled in the server, how many Processors are installed in the server, and how I can run a sar command to show me processor statistics? I... (4 Replies)
Discussion started by: Docboyeee
4 Replies

2. BSD

X configuration

HEllo, I try to Launch OOO, but I have X configuration problem. I 'm searching in man pages but if someone can help me... Of course I set the DISPLAY as explain in the man page but with no more result: setenv DISPLAY myws:0 Thanks in advance (1 Reply)
Discussion started by: SoulCoder
1 Replies

3. Post Here to Contact Site Administrators and Moderators

configuration

how to configure servor dns on windows servor 2003 (0 Replies)
Discussion started by: djest
0 Replies

4. Linux

configuration

hello, I don't know how to configure servor dns on linux,please help I thanck YOU (1 Reply)
Discussion started by: djest
1 Replies

5. AIX

Need help on IP Configuration

I have an RS/6000 running AIX 5.3. I would like to get either dhcp client working or assigning it an ip would be fine as well. I have tried using smit to do it many times trying different things, and I can get an ip assigned but it doesn't communicate with the network or internet. I haven't been... (3 Replies)
Discussion started by: izzzy
3 Replies

6. SCO

printer configuration

Dear all i have install printer in sco open 5 , i m not getting print out , but printing is showing in que plz help (7 Replies)
Discussion started by: sudhir69
7 Replies

7. Red Hat

LDAP configuration

I have installed openldap-servers package in server machine i have edited vi /etc/openldap/ldap.conf i have added following line BASE dc=abcd,dc=com URI ldap://ldap.abcd.com ldap://ldap-master.abcd.com:666 i have restarted the ldap service then client pc i have installed... (0 Replies)
Discussion started by: ainstin
0 Replies

8. UNIX for Advanced & Expert Users

Postfix Configuration

Hi, i have to configure postfix in this mode: - if i receive a mail from a@a.a relay to - if i receive a mail NOT from a@a.a relay the mail to user "test" that is on localhost For the first rule i do this in main.cf: sender_dependent_default_transport_maps = hash:/etc/postfix/sender_check... (0 Replies)
Discussion started by: certo85
0 Replies
AuCreateBucket(3)					     Library Functions Manual						 AuCreateBucket(3)

Name
       AuCreateBucket - create a bucket

Synopsis
       #include <audio/audiolib.h>

       AuBucketID AuCreateBucket(server, format, tracks, access, sample_rate, nsamples, description, status)
	   AuServer *server;
	   AuUint32 format;
	   AuUint32 tracks;
	   AuUint32 access;
	   AuUint32 sample_rate;
	   AuUint32 num_samples;
	   AuString *description;
	   AuStatus *status; /* RETURN */

Arguments
       server	 Specifies the connection to the audio server.

       format	 Specifies  the  data  format  of  the audio data.  Currently, the following formats are defined: AuFormatULAW8, AuFormatLinearUn-
		 signed8, AuFormatLinearSigned8, AuFormatLinearSigned16MSB, AuFormatLinearUnsigned16MSB, AuFormatSignedLinear16LSB, and  AuFormat-
		 LinearUnsigned16LSB.

       tracks	 Specifies the number of tracks of the audio data.

       access	 Specifies  the  types	of operations permitted on this bucket.  This must be a bitwise inclusive OR of zero or more of these con-
		 stants: AuAccessImportMask, AuAccessExportMask, AuAccessDestroyMask, and AuAccessListMask.

       sample_rate
		 Specifies the sample rate of the audio data.

       num_samples
		 Specifies the number of samples the bucket will contain.

       description
		 Specifies a textual description of the bucket.  This may be NULL.

       status	 If non-NULL, flush the output buffer and return the status from the server.

Description
       AuCreateBucket creates a bucket with the specified attributes, and returns the bucket ID, or AuNone if there was  an  error.   The  initial
       contents of the bucket are undefined.

Errors
       AuBadValue, AuBadLength, AuBadAlloc.

See Also
       AuDestroyBucket, AuSetBucketAttributes, AuListBuckets, AuFreeBucketAttributes.

       audiolib - Network Audio System C Language Interface

audiolib - bucket existence					       1.9.3							 AuCreateBucket(3)
All times are GMT -4. The time now is 11:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy