Sponsored Content
Full Discussion: rsync and mtime
Top Forums UNIX for Dummies Questions & Answers rsync and mtime Post 302578801 by jim mcnamara on Friday 2nd of December 2011 10:54:13 AM
Old 12-02-2011
You need to build an exclude file:
Code:
ssh me@host ' find /logs/ -mtime +7 > /tmp/excludefile'
scp me@host:/tmp/excludefile .
rsync --excludefrom=excludefile  me@host:/logs/* .

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find . -mtime

...what am i doing wrong?? I need to find all files older than 30 days and delete but I can't get it to pull details for ANY + times. The file below has a time stamp which is older than 1 day, however if I try and select it using any of the -time flags it just doesn't see it. (the same thing... (1 Reply)
Discussion started by: topcat8
1 Replies

2. UNIX for Dummies Questions & Answers

mtime help!!!!!

thank you for the help. (2 Replies)
Discussion started by: scooter17
2 Replies

3. Shell Programming and Scripting

mtime

hi, :) consider the following statement find . -type f -mtime -1 -print here what is the use of -1 option. any help? cheers RRK (7 Replies)
Discussion started by: ravi raj kumar
7 Replies

4. Shell Programming and Scripting

problem in mtime

Hey champs, i am using the following commands to search 1day files available under a dir by shell script. find <dirname> -type f -mtime +1 sometimes it used to show me correct results.....but sometimes it's not ??? if the above one not working perfect i.e. not showing me the exact... (2 Replies)
Discussion started by: manas_ranjan
2 Replies

5. UNIX for Dummies Questions & Answers

-mtime +30

Hello, Can someone help me to understand the following: find /test/rman/ -mtime +30 -exec rm '{}' \; What does -mtime +30 mean? Thanks! (1 Reply)
Discussion started by: Blue68
1 Replies

6. Shell Programming and Scripting

mtime

Hi, I've some files of some past days and everyday some new files are also getting added to the same. Now how can i use mtime to get the files of the current date i.e if i want the files of 25th feb 2009 and if im finding the files on 25th 12:10 am then i should only get the files after... (4 Replies)
Discussion started by: ss_ss
4 Replies

7. AIX

-mtime Problem

Hi, I'm using command "find . -mtime +10 -type f -print" to list the files 10 days or older but I'm getting the files which are even created today. What am I doing wrong? Thanks. (1 Reply)
Discussion started by: Gbyte
1 Replies

8. UNIX for Dummies Questions & Answers

(find) mtime vs. (unix) mtime

Hi I've made some test with perl script to learn more about mtime... So, my question is : Why the mtime from findfind /usr/local/sbin -ctime -1 -mtime -1 \( -name "*.log" -o -name "*.gz" \) -print are not the same as mtime from unix/linux in ls -ltr or in stat() function in perl : stat -... (2 Replies)
Discussion started by: hiddenshadow
2 Replies

9. Red Hat

-mtime command

Hello, what this command do. find /oracle/u01/app/oracle/admin/rdz/udump/ -name "*.trc" -mtime +1 Thanks, Umair (1 Reply)
Discussion started by: umair
1 Replies

10. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies
AMADDCLIENT(8)						  System Administration Commands					    AMADDCLIENT(8)

NAME
amaddclient - program to add client to an existing Amanda configuration SYNOPSIS
amaddclient --config config || --client client name || --diskdev directory to backup [--m] [--dumptype string] [--includefile string] [--includelist string] [--excludefile string] [--excludelist string] [--user string] [--auth string] [--gnutar_list_dir string] [--amandates string] [--no-client-update] [--batch] [--help] DESCRIPTION
After Amanda rpms are successfully installed and amserverconfig is run, amaddclient will add client to the Amanda configuration. amaddclient create or update Amanda disklist(5) file and create or update /var/lib/amanda/.amandahosts file on the server. If --no-client-update is not specified, amaddclient will attempt to update or create /var/lib/amanda/.amandahost, amanda-client.conf and gnutar-lists on the client. (See ssh-keygen(1) and ssh-add(1) for detail.) amaddclient must be run by user amandabackup. --config, --client and --diskdev must be specified. OPTIONS
Options may be abbreviated, as long as the abbreviation is not ambiguous. Option argument can either separated by '=' or a space. Example: --conf=v253, --client client8.zmanda.com --config config Amanda configuration which this program will add the client to. --client client The name of the client machine to add. FQDN name recommended. --diskdev diskdev Directory for this Amanda configuration to backup. --m Modify existing entry in the disklist(5) file. Note: if disklist(5) file has been modified manually, this option might not work. --dumptype dumptype dumptype to use. Dumptype must be defined in /etc/amanda/template.d/dumptypes or /etc/amanda/$config/amanda.conf file. Default: [user-tar] --user string name of user using amrecover on the client, default is root. --auth string authentication method to use when running amrecover from the client , default is bsdtcp. --gnutar_list_dir string directory where gnutar keep its state file on the client. Absolute path required. Default is /var/lib/amanda/gnutar-lists. If --no-client-update is not set, this program will attempt to create the directory on the client. --amandates string file where amanda keep the date of each dumplevel on the client, default is /etc/amandates. --batch Turn on batch mode when copying files to the client, default is off --no-client-update If this option is set, amaddclient will not attempt to update/create .amandahosts, amanda-client.conf and gnutar-lists file on the client. --help Display usage. If any of the following four options are used, amaddclient will extend the dumptype definition to an in-line definition in the disklist(5) file. --includefile string string is a glob expression --includelist string string is a file name on the client containing glob expressions. Specify either --includefile or --includelist. --excludefile string string is a glob expression --excludelist string string is a file name on the client containing glob expressions. Specify either --excludefile or --excludelist. FILES
/var/lib/amanda/template.d Amanda configuration template files install location /var/lib/amanda amandabackup home directory /var/lib/amanda/.amandahosts Amanda authentication file. /var/lib/amanda/gnutar-lists A directory which contains backup timestamp and list of files backed up. /etc/amanda/$config Amanda configuration files location for $config(e.g: DailySet1). /etc/amanda/template.d A directory contains dumptypes and tapetypes files used by all Amanda configurations. /etc/amandates Amanda file on the client. It keeps track of structures of previous dumps. /tmp/amanda directory contains Amanda debug log files. RETURN VALUE
On success, zero is returned. On error, 1 is returned. SEE ALSO
amanda(8), amanda.conf(5), amserverconfig(8), ssh-keygen(1), ssh-add(1), scp(1) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHOR
Kevin Till <kevin.till@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Amanda 3.3.1 02/21/2012 AMADDCLIENT(8)
All times are GMT -4. The time now is 10:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy