08-27-2016
Rsync exclude & include?
hi
I have a few folders and a few files , for example
Directory A B C D E
Files 1 2 3 4 5
I want B directory and "2" File that does not sync
But other directories and file sync
What is the solution ?
Is there a way to sync time is under one minute?
os centos 6.8
thanks...
Last edited by jim mcnamara; 08-27-2016 at 09:11 AM..
10 More Discussions You Might Find Interesting
1. Programming
I like to compile a cxx file with g++ compiler.
I tried with option
g++ -I<include path> -L<library path> source-file
but ending with compilation error in /usr/local/bin/gcc-lib/.../crt1.o
I think the libraries are not taken from proper path
How to compile a cxx file with libraries... (1 Reply)
Discussion started by: ls1429
1 Replies
2. Shell Programming and Scripting
Hi
In unix i want to zip the files in a directory excluding *.dmp, *.log, *.lst, *.out files in that directory. pls let me know what command to use.
$zip ........ ?
Thanks (1 Reply)
Discussion started by: dreams5617
1 Replies
3. Shell Programming and Scripting
Hello all,
Everyone has been awesome assisting with my rsync script... Now I want to clean it up. I think the best way for me to exclude many files might be to use a rsync exclude file.
So in my script I add
So now then, here is my .rsync/exclude...
So what is happening is the... (0 Replies)
Discussion started by: komputersman
0 Replies
4. Shell Programming and Scripting
hey all, i'm trying to rsync some dir's and files between servers and i've added an exclude statement, but it still goes out and tries to rsync the directory.
I've tried the following:
--exclude="/export/home/zones/lab"
as well as:
--exclude=/export/home/zones/lab
and also:... (1 Reply)
Discussion started by: em23
1 Replies
5. Shell Programming and Scripting
Hi Frdz,
i am using rsync to transfer files from source to destination. but i have one criteria like i have to tranfer only links from source to destination.
in home/test/po folder i have
kiran/test1 -> /home/test/lo/fg
kiran/test2 -> /home/test/lo/fg2
like links are available.... (1 Reply)
Discussion started by: KiranKumarKarre
1 Replies
6. UNIX for Advanced & Expert Users
Hi ALL...
I have an IMAP server & I have setup rsync to copy all mailboxes (MailDir) to a remote backup machine.
rsync is working fine and is copying my files.
I need some advice on how to restore a particular mailbox when a user makes a request
assuming she has has deleted an important... (1 Reply)
Discussion started by: coolatt
1 Replies
7. Shell Programming and Scripting
I wrote this korn script and ran into a hole. I can use find to exclude all the hidden directories and to use my include file/exclude files for running a full backup
find / -depth -ipath '/home/testuser/.*' -prune -o -print| grep -f include.mydirs | grep -v -f exclude.mydirs
but when I... (8 Replies)
Discussion started by: metallica1973
8 Replies
8. Red Hat
I have been asked to see if we can restrict SFTP access to authorised users only. There will be business users who will log on with SSH, but they are locked into a menu. They will have write access to the production data to do their job, but we don't want them to have access to read/write the... (8 Replies)
Discussion started by: rbatte1
8 Replies
9. Shell Programming and Scripting
Loving the rsync command and beginning to write some scripts with it.
However I'm hung up on the --exclude function.
Script is tested and works great BEFORE I put the --omit in.
What am I doing wrong in my syntax?
rsync $OPTS /cis/cloverleaf/cis6.0/integrator/... (2 Replies)
Discussion started by: B_ROX
2 Replies
10. UNIX for Dummies Questions & Answers
Hi Folks,
I'm using rsync on Solaris 10 to backup a web server and need to exclude the cache and tmp directories. The man pages and google on rsync --exclude are ambiguous but I have tried--exclude=".*" and --exclude/remote_server/absolute_path with success only on the tmp files.
Rather than make... (2 Replies)
Discussion started by: SmokeyJoe
2 Replies
LEARN ABOUT DEBIAN
apache::session::store::file
Apache::Session::Store::File(3pm) User Contributed Perl Documentation Apache::Session::Store::File(3pm)
NAME
Apache::Session::Store::File - Store persistent data on the filesystem
SYNOPSIS
use Apache::Session::Store::File;
my $store = new Apache::Session::Store::File;
$store->insert($ref);
$store->update($ref);
$store->materialize($ref);
$store->remove($ref);
DESCRIPTION
This module fulfills the storage interface of Apache::Session. The serialized objects are stored in files on your filesystem.
OPTIONS
This module requires one argument in the usual Apache::Session style. The name of the option is Directory, and the value is the full path
of the directory where you wish to place the files. Example
tie %s, 'Apache::Session::File', undef,
{Directory => '/tmp/sessions'};
NOTES
All session objects are stored in the same directory. Some filesystems, such as Linux's ext2fs, have O(n) performance where n is the
number of files in a directory. Other filesystems, like Sun's UFS, and Linux's reiserfs, do not have this problem. You should consider
your filesystem's performance before using this module to store many objects.
AUTHOR
This module was written by Jeffrey William Baker <jwbaker@acm.org>.
SEE ALSO
Apache::Session
perl v5.10.1 2010-10-18 Apache::Session::Store::File(3pm)