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/000000000000061/2015-04-01-07-04/ skipping non-regular file "null" rsync -a --no-D --delete /dev/zero /home/rc-41/data/000000000000061/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/000000000000061/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/000000000000061/2015-04-01-07-04/ -delete I know not suitable rm -rf /home/rc-41/data/000000000000061/2015-04-01-07-04/ is also not suitable How to do it differently? -- Sincerely, Dugin Sergey mailto: drug at qwarta.ru QWARTA
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/000000000000061/2015-04-01-07-04/ >skipping non-regular file "null" > >rsync -a --no-D --delete /dev/zero /home/rc-41/data/000000000000061/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/000000000000061/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/000000000000061/2015-04-01-07-04/ -delete >I know not suitable > >rm -rf /home/rc-41/data/000000000000061/2015-04-01-07-04/ >is also not suitable > > > >How to do it differently? > > >-- >Sincerely, > Dugin Sergey mailto: drug at 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 - ken at heavycomputing.ca skype:kenchase23 +1 416 897 6284 Toronto Canada Heavy Computing - Clued bandwidth, colocation and managed linux VPS @151 Front St. W.
-----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/000000000000061/2015-04-01-07-04/ skipping >> non-regular file "null" >> >> rsync -a --no-D --delete /dev/zero >> /home/rc-41/data/000000000000061/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/000000000000061/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/000000000000061/2015-04-01-07-04/ -delete I >> know not suitable >> >> rm -rf /home/rc-41/data/000000000000061/2015-04-01-07-04/ is also >> not suitable >> >> >> >> How to do it differently? >> >> >> -- Sincerely, Dugin Sergey mailto: drug at 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. Kevin at FutureQuest.net (work) Orlando, Florida kmk at 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-----
On 16.04.2015 12:20, ????? ?????? wrote:> Hi, Rsync. > > find /home/rc-41/data/000000000000061/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