6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everyone!
I need to write a script that will synchronize two servers using FTP. So basically the script will get only the files that exist on the remote server that do not exist on the local server. Is there an option to do this when using mget? If not, is there a way to copy over only the... (2 Replies)
Discussion started by: Fatbob
2 Replies
2. Shell Programming and Scripting
Hi,
I have two servers1&2, one is not in the network. Cant communicate from it to other servers. The second one can communicate to above mentioned server. I am trying a script which synchronizes files between server 1 an 2?
server1: cant communicate to any other servers
server2: can... (4 Replies)
Discussion started by: Tuxidow
4 Replies
3. UNIX for Advanced & Expert Users
hi.
i am writing a c program under bash shell.
i would like to use semaphore functions like sem_wait(), sem_post()
and i included <semaphore.h> and it compailes fine
but when i try to run it gives me an error "undefined reference to sem_wait() , sem_post() , sem_init()"
what have i missed... (2 Replies)
Discussion started by: emil2006
2 Replies
4. Programming
I am writing a program in C for my networking class, so I am relatively new to this.
To begin, I have 7 processes that need do send messages to every other one, and every one of them needs to receive the messages sent by others.
I am using fork() to create 6 more processes.
The message... (1 Reply)
Discussion started by: inabramova
1 Replies
5. Shell Programming and Scripting
I have 4 directory
Dir1
file1 file2 file3 file4
Dir2
file3 file5 file6 file8
Dir3
file1 file2 file6 file9 file10
Dir4
file3 file6 file12 file15
and all the 4 dirs are having couple of files.
Few of the files are common to other directory/ies and few... (1 Reply)
Discussion started by: reldb
1 Replies
6. Programming
Hi,
I am trying to implement the synchronize feature of java using C. I am using a semaphore for the same. I have a wrapper called "synch" to which I pass the function pointer(any_fn). This pointer points to the function (my_fn) which needs to be synchronized.
However to create the semaphore I... (8 Replies)
Discussion started by: linuxpenguin
8 Replies
JETS3T-SYNCHRONIZE(1) JETS3T-SYNCHRONIZE(1)
NAME
jets3t-synchronize - synchronize local directories with an Amazon S3 account
SYNOPSIS
Synchronize the contents of a local directory with S3:
jets3t-synchronize [options] UP <S3path> <path1> [[path2] .. [pathN]]
Synchronize the contents of S3 with a local directory:
jets3t-synchronize [options] DOWN <S3path> <download_dir>
OVERVIEW
jets3t-synchronize is a console (text mode) Java application for synchronizing directories on a computer with an Amazon S3 account.
OPTIONS
-h, --help
Displays a brief summary with all options.
-n, --noaction
No action taken. No files will be changed locally or on S3, instead a report will be generating showing what will happen if the command
is run without the -n option.
-q, --quiet
Runs quietly, without reporting on each action performed or displaying progress messages. The summary is still displayed.
-p, --noprogress
Runs somewhat quietly, without displaying progress messages. The action report and overall summary are still displayed.
-f, --force
Force tool to perform synchronization even when files are up-to-date. This may be useful if you need to update metadata or timestamps in
S3.
-k, --keepfiles
Keep outdated files on destination instead of reverting/removing them. This option cannot be used with --nodelete.
-d, --nodelete
Keep files on destination that have been removed from the source. This option is similar to --keepfiles except that files may be
reverted. This option cannot be used with --keepfiles.
-m, --move
Move items rather than merely copying them. Files on the local computer will be deleted after they have been uploaded to S3, or objects
will be deleted from S3 after they have been downloaded. Be *very* careful with this option. This option cannot be used with
--keepfiles.
-b, --batch
Download or upload files in batches, rather than all at once. Enabling this option will reduce the memory required to synchronize large
buckets, and will ensure file transfers commence as soon as possible. When this option is enabled, the progress status lines refer only
to the progress of a single batch.
-s, --skipmetadata
Skip the retrieval of object metadata information from S3. This will make the synch process much faster for large buckets, but it will
leave jets3t-synchronize with less information to make decisions. If this option is enabled, empty files or directories will not be
synchronized reliably. This option cannot be used with the --gzip or --crypto options.
-g, --gzip
Compress (GZip) files when backing up and decompress gzipped files when restoring.
-c, --crypto
Encrypt files when backing up and decrypt encrypted files when restoring. If this option is specified the properties must contain a
password.
--properties filename
Load the synchronizer app properties from the given file rather than from a synchronizer.properties file in the classpath.
--credentials filename
Load your AWS credentials from an encrypted file, rather than from the synchronizer.properties file. This encrypted file can be created
using the Cockpit application, or the JetS3t API library.
--acl ACL_string
Specifies the Access Control List setting to apply. This value must be one of: PRIVATE, PUBLIC_READ, PUBLIC_READ_WRITE. This setting will
override any acl property specified in the synchronize.properties file
--reportlevel level
A number that specifies how much report information will be printed:
0 - no report items will be printed (the summary will still be printed).
1 - only actions are reported
[Prefixes N, U, D, R, F, M]
2 - differences & actions are reported
[Prefixes N, U, D, R, F, M, d, r]
3 - DEFAULT: all items are reported
[Prefixes N, U, D, R, F, M, d, r, -]
NOTES
Required properties can be provided via: a file named synchronize.properties in the classpath (or /etc/jets3t/synchronize.properties), a
file specified with the --properties option, or by typing them in when prompted on the command line. Required properties are:
accesskey: Your AWS Access Key (Required)
secretkey: Your AWS Secret Key (Required)
password: Encryption password (only required when using crypto)
Properties specified in this file will override those in jets3t.properties (or in /etc/jets3t/jets3t.properties).
REPORT
Report items are printed on a single line with an action flag followed by the relative path of the file or S3 object. The report legend
follows:
N: A new file/object will be created
U: An existing file/object has changed and will be updated
D: A file/object existing on the target does not exist on the source and will be deleted.
d: A file/object existing on the target does not exist on the source but because the --keepfiles or --nodelete option was set it was not
deleted.
R: An existing file/object has changed more recently on the target than on the source. The target version will be reverted to the older
source version
r: An existing file/object has changed more recently on the target than on the source but because the --keepfiles option was set it was not
reverted.
-: A file is identical between the local system and S3, no action is necessary.
F: A file identical locally and in S3 was updated due to the Force option.
M: The file/object will be moved (deleted after it has been copied to/from S3).
SEE ALSO
http://jets3t.s3.amazonaws.com/applications/synchronize.html
2011-04-16 JETS3T-SYNCHRONIZE(1)