rsync --delete

2015-04-16 Thread Дугин Сергей
Hi, Rsync.

I want to help rsink delete a folder with a large number of files and folders. 
Tried this:
rsync -a --no-D --delete /dev/null 
/home/rc-41/data/061/2015-04-01-07-04/
skipping non-regular file null

rsync -a --no-D --delete /dev/zero 
/home/rc-41/data/061/2015-04-01-07-04/
skipping non-regular file zero


That's how it turns out
rsync -a --delete /empty_folder/ 
/home/rc-41/data/061/2015-04-01-07-04/
But this option is not satisfied as if the disk is 100% filled to create an 
empty folder does not work

mkdir /empty folder/
Disk quota ekstseeded

Got an error.


find /home/rc-41/data/061/2015-04-01-07-04/ -delete
I know not suitable

rm -rf /home/rc-41/data/061/2015-04-01-07-04/
is also not suitable



How to do it differently?


-- 
Sincerely,
  Dugin Sergey mailto: d...@qwarta.ru
  QWARTA

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Rsync a directory via a linked name.

2015-04-16 Thread Hongyi Zhao
Hi all,

See the following for detail:

$ rsync -l ftp.cn.debian.org::debian/dists/wheezy/main/installer-amd64/
[snip]
drwxr-sr-x  4,096 2015/01/10 18:17:33 .
lrwxrwxrwx 18 2015/01/10 18:16:31 current - 20130613+deb7u2
+b4
drwxr-xr-x  4,096 2013/05/01 05:33:52 20130430
drwxr-sr-x  4,096 2015/01/05 17:25:32 20130613+deb7u2+b4

In the above case, the current is a link to 20130613+deb7u2, I want to 
use the name of link directory, i.e., current, to retrieve the correspond 
stuff from remote server to my local host.  At the same time, exclude all 
of the other stuff in the installer-amd64 directory, for this case, it 
should be the directory 20130430. 

Considering that the sub-directories in installer-amd64 are often be 
renamed except the link directory name `current', so I want to only use 
the `current' as the directory name in my include/exclude rules for the 
above jobs. 

Any hints on how to write this rsync rules? 

Regards
-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync --delete

2015-04-16 Thread Ken Chase
Wow, it took me a few seconds to figure out what you were trying to do.

What's wrong with rm?

Also I think trying to leverage the side of disqualifying all source files
just to get the delete effect (very clever but somewhat obtuse!) risks
creating a temporary file of some kind in the target at the start of the
operation, and if you cant even mkdir then that exceeds disk quota
immediately and fails.

/kc


On Thu, Apr 16, 2015 at 12:20:52PM +0300, ? ?? said:
  Hi, Rsync.
  
  I want to help rsink delete a folder with a large number of files and 
folders. Tried this:
  rsync -a --no-D --delete /dev/null 
/home/rc-41/data/061/2015-04-01-07-04/
  skipping non-regular file null
  
  rsync -a --no-D --delete /dev/zero 
/home/rc-41/data/061/2015-04-01-07-04/
  skipping non-regular file zero
  
  
  That's how it turns out
  rsync -a --delete /empty_folder/ 
/home/rc-41/data/061/2015-04-01-07-04/
  But this option is not satisfied as if the disk is 100% filled to create an 
empty folder does not work
  
  mkdir /empty folder/
  Disk quota ekstseeded
  
  Got an error.
  
  
  find /home/rc-41/data/061/2015-04-01-07-04/ -delete
  I know not suitable
  
  rm -rf /home/rc-41/data/061/2015-04-01-07-04/
  is also not suitable
  
  
  
  How to do it differently?
  
  
  -- 
  Sincerely,
Dugin Sergey mailto: d...@qwarta.ru
QWARTA
  
  -- 
  Please use reply-all for most replies to avoid omitting the mailing list.
  To unsubscribe or change options: 
https://lists.samba.org/mailman/listinfo/rsync
  Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

-- 
Ken Chase - k...@heavycomputing.ca skype:kenchase23 +1 416 897 6284 Toronto 
Canada
Heavy Computing - Clued bandwidth, colocation and managed linux VPS @151 Front 
St. W.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rsync a directory via a linked name.

2015-04-16 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Just go 1 deeper for your source: rsync -l
ftp.cn.debian.org::debian/dists/wheezy/main/installer-amd64/current/

On 04/16/2015 06:21 AM, Hongyi Zhao wrote:
 Hi all,
 
 See the following for detail:
 
 $ rsync -l
 ftp.cn.debian.org::debian/dists/wheezy/main/installer-amd64/ 
 [snip] drwxr-sr-x  4,096 2015/01/10 18:17:33 . lrwxrwxrwx
 18 2015/01/10 18:16:31 current - 20130613+deb7u2 +b4 drwxr-xr-x
 4,096 2013/05/01 05:33:52 20130430 drwxr-sr-x  4,096
 2015/01/05 17:25:32 20130613+deb7u2+b4
 
 In the above case, the current is a link to 20130613+deb7u2, I want
 to use the name of link directory, i.e., current, to retrieve the
 correspond stuff from remote server to my local host.  At the same
 time, exclude all of the other stuff in the installer-amd64
 directory, for this case, it should be the directory 20130430.
 
 Considering that the sub-directories in installer-amd64 are often
 be renamed except the link directory name `current', so I want to
 only use the `current' as the directory name in my include/exclude
 rules for the above jobs.
 
 Any hints on how to write this rsync rules?
 
 Regards
 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iEYEARECAAYFAlUv018ACgkQVKC1jlbQAQfxsgCcDRssw7zIMHzmjhwTt/PINj7t
EM0AnRckJoeebESMugMkzua7YXQYpoUM
=1JSQ
-END PGP SIGNATURE-
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync --delete

2015-04-16 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I don't understand what is wrong with rm either.

But if you must have an empty directory is there a tmpfs where you can
make one?  Is there already an empty one like /var/empty?

On 04/16/2015 10:13 AM, Ken Chase wrote:
 Wow, it took me a few seconds to figure out what you were trying to
 do.
 
 What's wrong with rm?
 
 Also I think trying to leverage the side of disqualifying all
 source files just to get the delete effect (very clever but
 somewhat obtuse!) risks creating a temporary file of some kind in
 the target at the start of the operation, and if you cant even
 mkdir then that exceeds disk quota immediately and fails.
 
 /kc
 
 
 On Thu, Apr 16, 2015 at 12:20:52PM +0300, ? ?? said:
 Hi, Rsync.
 
 I want to help rsink delete a folder with a large number of files
 and folders. Tried this: rsync -a --no-D --delete /dev/null
 /home/rc-41/data/061/2015-04-01-07-04/ skipping
 non-regular file null
 
 rsync -a --no-D --delete /dev/zero
 /home/rc-41/data/061/2015-04-01-07-04/ skipping
 non-regular file zero
 
 
 That's how it turns out rsync -a --delete /empty_folder/
 /home/rc-41/data/061/2015-04-01-07-04/ But this
 option is not satisfied as if the disk is 100% filled to create
 an empty folder does not work
 
 mkdir /empty folder/ Disk quota ekstseeded
 
 Got an error.
 
 
 find /home/rc-41/data/061/2015-04-01-07-04/ -delete I
 know not suitable
 
 rm -rf /home/rc-41/data/061/2015-04-01-07-04/ is also
 not suitable
 
 
 
 How to do it differently?
 
 
 -- Sincerely, Dugin Sergey mailto: d...@qwarta.ru QWARTA
 
 -- Please use reply-all for most replies to avoid omitting the
 mailing list. To unsubscribe or change options:
 https://lists.samba.org/mailman/listinfo/rsync Before posting,
 read: http://www.catb.org/~esr/faqs/smart-questions.html
 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iEYEARECAAYFAlUv1A8ACgkQVKC1jlbQAQfaGACfR7g0t19aeY5KiUTcsxBJqEVy
tjcAnR63Viq8B0NZ4p+GgwMO+ZENjdPZ
=aHlw
-END PGP SIGNATURE-
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync --delete

2015-04-16 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I thought of something else if it must be rsync that is used...

rsync -a --delete --exclude='*' --delete-excluded /anywhere/
/stuff/to/delete/

That would empty the target dir regardless of what is in the source dir.

I would still like to hear how that is any different than rm.

On 04/16/2015 11:28 AM, Ken Chase wrote:
 problem is he's trying to rsync into the target dir and have the 
 side effect of delete. so an empty dir would necessarily need to
 be in the target of course and thus created there, triggering the
 quota block.
 
 he tried to avoid this by using device files then 'blocking all
 device files' but i think rsync figures out first there's nothing
 to do, so it just stops and doesnt do the delete. wonder if
 --delete-first would help there perhaps.
 
 however, this is a REALLY obtuse way of running rm. unless of
 course he's trying to inject some kinda options into a script that
 can only run rsync or something wonky like that.
 
 /kc
 
 
 On Thu, Apr 16, 2015 at 11:23:59AM -0400, Kevin Korb said: I don't
 understand what is wrong with rm either.
 
 But if you must have an empty directory is there a tmpfs where you
 can make one?  Is there already an empty one like /var/empty?
 
 On 04/16/2015 10:13 AM, Ken Chase wrote:
 Wow, it took me a few seconds to figure out what you were trying
 to do.
 
 What's wrong with rm?
 
 Also I think trying to leverage the side of disqualifying all 
 source files just to get the delete effect (very clever but 
 somewhat obtuse!) risks creating a temporary file of some kind
 in the target at the start of the operation, and if you cant
 even mkdir then that exceeds disk quota immediately and fails.
 
 /kc
 
 
 On Thu, Apr 16, 2015 at 12:20:52PM +0300, ? ?? said:
 Hi, Rsync.
 
 I want to help rsink delete a folder with a large number of
 files and folders. Tried this: rsync -a --no-D --delete
 /dev/null /home/rc-41/data/061/2015-04-01-07-04/
 skipping non-regular file null
 
 rsync -a --no-D --delete /dev/zero 
 /home/rc-41/data/061/2015-04-01-07-04/ skipping 
 non-regular file zero
 
 
 That's how it turns out rsync -a --delete /empty_folder/ 
 /home/rc-41/data/061/2015-04-01-07-04/ But this 
 option is not satisfied as if the disk is 100% filled to
 create an empty folder does not work
 
 mkdir /empty folder/ Disk quota ekstseeded
 
 Got an error.
 
 
 find /home/rc-41/data/061/2015-04-01-07-04/ -delete
 I know not suitable
 
 rm -rf /home/rc-41/data/061/2015-04-01-07-04/ is
 also not suitable
 
 
 
 How to do it differently?
 
 
 -- Sincerely, Dugin Sergey mailto: d...@qwarta.ru QWARTA
 
 -- Please use reply-all for most replies to avoid omitting the 
 mailing list. To unsubscribe or change options: 
 https://lists.samba.org/mailman/listinfo/rsync Before posting, 
 read: http://www.catb.org/~esr/faqs/smart-questions.html
 
 
 -- Please use reply-all for most replies to avoid omitting the
 mailing list. To unsubscribe or change options:
 https://lists.samba.org/mailman/listinfo/rsync Before posting,
 read: http://www.catb.org/~esr/faqs/smart-questions.html
 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iEYEARECAAYFAlUv2JwACgkQVKC1jlbQAQdV8wCfZnxIDPGGj+OiAYb5RDc61OOx
PwAAnj2WkSoEUhZsd6g1yMmFNCMrmhqs
=oH1r
-END PGP SIGNATURE-
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync --delete

2015-04-16 Thread Ken Chase
problem is he's trying to rsync into the target dir and have the
side effect of delete. so an empty dir would necessarily need to be
in the target of course and thus created there, triggering the quota block.

he tried to avoid this by using device files then 'blocking all device files'
but i think rsync figures out first there's nothing to do, so it just stops
and doesnt do the delete. wonder if --delete-first would help there perhaps.

however, this is a REALLY obtuse way of running rm. unless of course he's
trying to inject some kinda options into a script that can only run rsync
or something wonky like that.

/kc


On Thu, Apr 16, 2015 at 11:23:59AM -0400, Kevin Korb said:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
  I don't understand what is wrong with rm either.
  
  But if you must have an empty directory is there a tmpfs where you can
  make one?  Is there already an empty one like /var/empty?
  
  On 04/16/2015 10:13 AM, Ken Chase wrote:
   Wow, it took me a few seconds to figure out what you were trying to
   do.
   
   What's wrong with rm?
   
   Also I think trying to leverage the side of disqualifying all
   source files just to get the delete effect (very clever but
   somewhat obtuse!) risks creating a temporary file of some kind in
   the target at the start of the operation, and if you cant even
   mkdir then that exceeds disk quota immediately and fails.
   
   /kc
   
   
   On Thu, Apr 16, 2015 at 12:20:52PM +0300, ? ?? said:
   Hi, Rsync.
   
   I want to help rsink delete a folder with a large number of files
   and folders. Tried this: rsync -a --no-D --delete /dev/null
   /home/rc-41/data/061/2015-04-01-07-04/ skipping
   non-regular file null
   
   rsync -a --no-D --delete /dev/zero
   /home/rc-41/data/061/2015-04-01-07-04/ skipping
   non-regular file zero
   
   
   That's how it turns out rsync -a --delete /empty_folder/
   /home/rc-41/data/061/2015-04-01-07-04/ But this
   option is not satisfied as if the disk is 100% filled to create
   an empty folder does not work
   
   mkdir /empty folder/ Disk quota ekstseeded
   
   Got an error.
   
   
   find /home/rc-41/data/061/2015-04-01-07-04/ -delete I
   know not suitable
   
   rm -rf /home/rc-41/data/061/2015-04-01-07-04/ is also
   not suitable
   
   
   
   How to do it differently?
   
   
   -- Sincerely, Dugin Sergey mailto: d...@qwarta.ru QWARTA
   
   -- Please use reply-all for most replies to avoid omitting the
   mailing list. To unsubscribe or change options:
   https://lists.samba.org/mailman/listinfo/rsync Before posting,
   read: http://www.catb.org/~esr/faqs/smart-questions.html
   
  
  - -- 
  ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
   Kevin Korb  Phone:(407) 252-6853
   Systems Administrator   Internet:
   FutureQuest, Inc.   ke...@futurequest.net  (work)
   Orlando, Floridak...@sanitarium.net (personal)
   Web page:   http://www.sanitarium.net/
   PGP public key available on web site.
  ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v2
  
  iEYEARECAAYFAlUv1A8ACgkQVKC1jlbQAQfaGACfR7g0t19aeY5KiUTcsxBJqEVy
  tjcAnR63Viq8B0NZ4p+GgwMO+ZENjdPZ
  =aHlw
  -END PGP SIGNATURE-
  -- 
  Please use reply-all for most replies to avoid omitting the mailing list.
  To unsubscribe or change options: 
https://lists.samba.org/mailman/listinfo/rsync
  Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

-- 
Ken Chase - k...@heavycomputing.ca 

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync --delete

2015-04-16 Thread Matthias Schniedermeyer
On 16.04.2015 12:20, ? ?? wrote:
 Hi, Rsync.
 
 find /home/rc-41/data/061/2015-04-01-07-04/ -delete
 I know not suitable

-mindepth 1 ?
That deletes the whole contents, but doesn't delete the folder itself.




-- 

Matthias
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Recycling directories and backup performance. Was: Re: rsync --link-dest won't link even if existing file is out of date (fwd)

2015-04-16 Thread Ken Chase
How do you handle snapshotting? or do you leave that to the block/fs 
virtualization
layer?

/kc


On Fri, Apr 17, 2015 at 01:35:27PM +1200, Henri Shustak said:
   Our backup procudures have provision for looking back at previous 
directories, but there is not much to be gained with recycled directories.  
Without recycling, and after a failure, the latest available backup may not 
have much in it.
  
  Just wanted to point out that LBackup has a number of checks in place to 
detect failures during a backup. If this happens, then that backup is not 
labeled as a successful snapshot. 
  
  At present, when the next snap shot is started, the previous incomplete 
snapshot(s) are not used as a link-dest source. As mentioned, this is something 
I have been looking at for a while. However, there are some edge cases which 
need to be handled carefully if you use incomplete backups as a link-dest 
source. I am sure these problems are all contractable, I have simply not spend 
enough time.
  
  -
  This email is protected by LBackup, an open source backup solution.
  http://www.lbackup.org
  
  
  
  
  -- 
  Please use reply-all for most replies to avoid omitting the mailing list.
  To unsubscribe or change options: 
https://lists.samba.org/mailman/listinfo/rsync
  Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

-- 
Ken Chase - k...@heavycomputing.ca skype:kenchase23 +1 416 897 6284 Toronto 
Canada
Heavy Computing - Clued bandwidth, colocation and managed linux VPS @151 Front 
St. W.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Recycling directories and backup performance. Was: Re: rsync --link-dest won't link even if existing file is out of date (fwd)

2015-04-16 Thread Henri Shustak
 Our backup procudures have provision for looking back at previous 
 directories, but there is not much to be gained with recycled directories.  
 Without recycling, and after a failure, the latest available backup may not 
 have much in it.

Just wanted to point out that LBackup has a number of checks in place to detect 
failures during a backup. If this happens, then that backup is not labeled as a 
successful snapshot. 

At present, when the next snap shot is started, the previous incomplete 
snapshot(s) are not used as a link-dest source. As mentioned, this is something 
I have been looking at for a while. However, there are some edge cases which 
need to be handled carefully if you use incomplete backups as a link-dest 
source. I am sure these problems are all contractable, I have simply not spend 
enough time.

-
This email is protected by LBackup, an open source backup solution.
http://www.lbackup.org




-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rsync a directory via a linked name.

2015-04-16 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Always have either --times or --archives.  Otherwise rsync will have
no idea what needs updating when you run it again.

On 04/16/2015 08:07 PM, Hongyi Zhao wrote:
 On Thu, 16 Apr 2015 11:21:03 -0400, Kevin Korb wrote:
 
 Just go 1 deeper for your source: rsync -l 
 ftp.cn.debian.org::debian/dists/wheezy/main/installer-amd64/current/

 
 Yes, I've tried this before.  But I also use the `--delete
 --delete- excluded' with the above options.  And finally I found
 that the  current will not be retrieved, in fact it will be deleted
 at the end.
 
 Then I noted the following args of rsync:
 
 -L, --copy-linkstransform symlink into referent
 file/dir -K, --keep-dirlinks treat symlinked dir on
 receiver as dir
 
 So I finally use the command like this and it does the trick:
 
 rsync -rlKLPv --delete --delete-excluded \ 
 ftp.cn.debian.org::debian/dists/wheezy/main/installer-amd64/current/

  But, even though, I cann't figure out whether the method used by
 me is the most appropriate method or not for this case.
 
 Regards
 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iEYEARECAAYFAlUwT1cACgkQVKC1jlbQAQc46QCgocsn498C0Q3w7t2glHO7/12X
+r0AoNozy4/ercYd+3gqQ1eEMd9BdWIC
=WGo0
-END PGP SIGNATURE-
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rsync a directory via a linked name.

2015-04-16 Thread Hongyi Zhao
On Thu, 16 Apr 2015 20:09:59 -0400, Kevin Korb wrote:

 Always have either --times or --archives.  Otherwise rsync will have no
 idea what needs updating when you run it again.

Thanks for your hints.

Regards
-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Recycling directories and backup performance. Was: Re: rsync --link-dest won't link even if existing file is out of date (fwd)

2015-04-16 Thread Henri Shustak

 How do you handle snapshotting? or do you leave that to the block/fs 
 virtualization layer?


I am guessing this question is directed at me. 

Firstly, when I used the word snapshot, I was referring to the snapshot in the 
LBackup context. It is outlined at the following page 
http://www.lbackup.org/hard-links. As such, it is not a file system snapshot 
(unless you use the scripting subsystem) it is instead a backup made at a 
specific date and time.

Secondly, if you are using the scripting subsystem to take an actual snapshot 
and then possibly mount this and then use LBackup to take a snapshot of that 
then this uses the file system virtualization layer.

Apologies for the confusion using this word has caused. It is simply a snapshot 
as described and referenced though out the LBackup documentation.

Let me know if further clarification is required.


This email is protected by LBackup, an open source backup solution
http://www.lbackup.org

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rsync a directory via a linked name.

2015-04-16 Thread Hongyi Zhao
On Thu, 16 Apr 2015 11:21:03 -0400, Kevin Korb wrote:

 Just go 1 deeper for your source: rsync -l
 ftp.cn.debian.org::debian/dists/wheezy/main/installer-amd64/current/

Yes, I've tried this before.  But I also use the `--delete --delete-
excluded' with the above options.  And finally I found that the  current 
will not be retrieved, in fact it will be deleted at the end.

Then I noted the following args of rsync:

-L, --copy-linkstransform symlink into referent file/dir
-K, --keep-dirlinks treat symlinked dir on receiver as dir

So I finally use the command like this and it does the trick:

rsync -rlKLPv --delete --delete-excluded \
ftp.cn.debian.org::debian/dists/wheezy/main/installer-amd64/current/

But, even though, I cann't figure out whether the method used by me is 
the most appropriate method or not for this case.

Regards
-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html