Rsync added new folders after copy?


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Rsync added new folders after copy?
Prev   Next
# 2  
Old 10-05-2016
It looks like your 'source' was root. Those are all system files. You can simply delete them from the 'destination' but be 100% certain you're really on the destination and not deleting your system, it happens.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Copy local files to single remote host but multiple folders using rsync

I'm trying to copy a file myfile.scr from my local Linux server to multiple folders on remote AiX server using single rsync command. Below command helps me copy the file "myfile.scr" from my localhost to a remote host folder "/app/deployment/tmpfiles" rsync --delay-updates -F --compress... (1 Reply)
Discussion started by: mohtashims
1 Replies

2. Shell Programming and Scripting

How to copy files/folders and show the files/folders?

Hi, So i know we use cp -r as a basic to copy folders/files. I would like this BUT i would like to show the output of the files being copied. With the amazing knowledge i have i have gone as far as this: 1) find source/* -exec cp -r {} target/ \; 2) for ObjectToBeCopied in `find... (6 Replies)
Discussion started by: Imre
6 Replies

3. Shell Programming and Scripting

How to copy the two most recently added files to another directory - HP-UX?

Hello, I am attempting to find and copy the two most recently added files to a specific directory, that fit a specific format. I was able to find the command to list the two most recently added files in directory: ls -1t | head -n 2 The command lists the two files names in a vertical list,... (11 Replies)
Discussion started by: mattkoz
11 Replies

4. UNIX for Dummies Questions & Answers

Rsync not deleting destination files/folders

Hi All, I want delete all files from destination folder. I am trying below commands rsync -avFF --delete-after /home/vizion/source/ /home/vizion/destination/ I need to be delete all file/fodders from destination Any body have idea ? Please correct me. (3 Replies)
Discussion started by: Chenchireddy
3 Replies

5. SCO

Rsync sometimes fails to copy

Hello I tried rsync (version 3.0.7) on OpenServer 5.0.7. Compile the version of samba.org and use of aljex.com. Both versions do not work reliably, sometimes show errors and stop copying (sometimes works) The OSR5.0.7 I'm using VirtualBox, I do not think the problem is in virtualization, but... (0 Replies)
Discussion started by: flako
0 Replies

6. Shell Programming and Scripting

Need to copy all but three folders

Hi, Below is the listing of folder "greece" $ cd greece $ ls tmp server logs properties I wish to copy all the contents of the dir "greece" to /tmp except the below three folders and its contents under "greece" 1.logs 2.server/bin/logs 3. server/cacheI am using sh (normal C... (4 Replies)
Discussion started by: mohtashims
4 Replies

7. Shell Programming and Scripting

Copy between two different folders containing same sub-folders

I have a folder like this ls input1 dir1 dir2 dir3 file1 file2 file3 dir1, dir2 and dir3 are sub-folders inside the folder input1 ls input2 dir1 dir2 dir3 file1 file2 file3 My dir1 in input1 folder has files f1, f2, f3 and f4. My dir1 in input2 folder has file f4 and f5. ... (3 Replies)
Discussion started by: jacobs.smith
3 Replies

8. Shell Programming and Scripting

rsync copy files once

Hi This is my situation I have files on the left which I want to copy to the right. Once the files are copied to the right, they are processed and then deleted. The next time rsync runs I dont want it to copy the same files again, it should only copy any new files to the right. I have been... (4 Replies)
Discussion started by: duonut
4 Replies

9. Shell Programming and Scripting

Need to echo a text where a (.) is added to the end of line during on-going copy or ftp

Hello All, I would like to create a script to echo a text where a (.) dot is added every 2 seconds to the end of this text (with a limit of 10 dots) as long as a file copy or ftp is ongoing and once the copy is finished it adds "done" to the end of this text line. please see the below example: ... (6 Replies)
Discussion started by: Dendany83
6 Replies

10. Shell Programming and Scripting

RSYNC script to transfer folders recursively without overwriting via FTP

Hi all, I would need a bash script to sync/transfer folders recursively via FTP/RSYNC (I initially planned to use FTP but I heard RSYNC would fit a lot better for this job(?)) The situation: 3 different Linux servers 1. source 2. destination - Samba 3. Server where the script runs on ... (2 Replies)
Discussion started by: thibautp
2 Replies
Login or Register to Ask a Question
RoPkg::Rsync::Atom(3pm) 				User Contributed Perl Documentation				   RoPkg::Rsync::Atom(3pm)

NAME
RoPkg::Rsync::Atom - the smallest unit in a rsync configuration file SYPONSIS
#!/usr/bin/perl use strict; use warnings; use RoPkg::Rsync::Atom; sub main { my $a = new RoPkg::Rsync::Atom( type => 'param', name => 'uid', value => 'nobody', ); print $a->ToString(0),$/; return 0; } main(); DESCRIPTION
RoPkg::Rsync::Atom is a class used by RoPkg::Rsync modules. The Atom is considered the smallest part of any rsync configuration file. An atom can be (at this moment): param blank comment METHODS
All methods, throw the OutsideClass exception, if you use them as class methods. Example: perl -MRoPkg::Rsync::Atom -e 'RoPkg::Rsync::Atom->Type;' Called outside class instance Besides OutsideClass the methods are throwing other exceptions as well. Refer to each method documentation for more information. new() The constructor of the class. new accepts 3 parameters grouped inside a hash: *) type - type of the atom *) name - name of the atom *) value - value of the atom The type parameter must always be present. If the type parameter is not present, a Param::Missing exception is raised. At this moment, the atoms have 3 types: *) param - a parameter in the standard form (name = value) *) comment - a comment *) blank - a blank line (or only with separators) If the value of the type parameter is not one of the ones specified a Param::Wrong exception is raised. Examples: example 1 (param): my $a = new RoPkg::Rsync::Atom( type => 'param', name => 'gid', value => 'users', ); example 2 (param): my $a = new RoPkg::Rsync::Atom(type => 'param'); $a->Name('gid'); $a->Value('users'); print 'Name of the atom is:',$a->Name,$/; example 3 (comment): my $a = new RoPkg::Rsync::Atom( type => 'comment', value => '# this is the group id', ); example 4 (blank): my $a = new RoPkg::Rsync::Atom( type => 'blank', value => q{ }, ); Name($new_name) The Name method is a get/set method. If $new_name exists (and his value is defined) then the set behaviour is selected, otherwise the method acts as a get method. Returns the name of the atom. Value($new_value) The Value method is a get/set method. If $new_value exists (and his value is defined) then the set behaviour is selected, otherwise the method acts as a get method. Returns the value of the atom. ToString($indent, $spaces) Returns the string representation of the atom. Accepts 2 parameters: indent and spaces. $indent is a true/false value specifing that the string representation should be prefixed with a tab character; $spaces is used to compute the number of spaces that should be added after the atom name, so that the total length of the parameter name to match the $spaces value. Example: my $a = new RoPkg::Rsync::Atom( type => 'param', name => 'gid', value => 'users', ); print $a->ToString(0, 6),$/, $a->ToString(0, 5),$/, $a->ToString(0, 4),$/, $a->ToString(0, 3),$/, $a->ToString(1, 6),$/, $a->ToString(1, 5),$/, $a->ToString(1, 4),$/, $a->ToString(1, 3),$/; The result is: gid = users gid = users gid = users gid = users gid = users gid = users gid = users gid = users Type Returns the type (string representation) of the atom. PREREQUISITES
perl 5.008 (or later) is required. Besides perl, you must have the following: RoPkg::Exceptions English Scalar::Util SEE ALSO
RoPkg::Rsync::Node RoPkg::Rsync::ConfFile RoPkg::Exceptions AUTHOR
Subredu Manuel <diablo@iasi.roedu.net> LICENSE
Copyright (C) 2005 Subredu Manuel. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license. perl v5.8.8 2006-06-09 RoPkg::Rsync::Atom(3pm)