Hello, is there some way how to disable temporarily account or access to files. I need to backup with tar, but there is problem when tar is reading and some file changed (with --ignore-failed-read it continues but archive is not created and without --ignore-failed-read it fails). Some accounts are huge ;( Need something like qmail sticky bit or world writable directory - qmail is not delivering when one of above conditions hits. Thank you for helping me. -- Lampa
Lampa wrote:> Hello, > > is there some way how to disable temporarily account or access to > files. I need to backup with tar, but there is problem when tar is > reading and some file changed (with --ignore-failed-read it continues > but archive is not created and without --ignore-failed-read it fails). > Some accounts are huge ;( Need something like qmail sticky bit or > world writable directory - qmail is not delivering when one of above > conditions hits. >Stop your MTA.> Thank you for helping me. >-- Stay with *nix :)
Hello, MTA is qmail, and there is no problem with it (qmail is stopped for current user - sticky bit set). Problem is dovecot - and is not possible to stop dovecot (due to clients) 2008/4/8, Tolga <tolga at ozses.net>:> > > Lampa wrote: > > > Hello, > > > > is there some way how to disable temporarily account or access to > > files. I need to backup with tar, but there is problem when tar is > > reading and some file changed (with --ignore-failed-read it continues > > but archive is not created and without --ignore-failed-read it fails). > > Some accounts are huge ;( Need something like qmail sticky bit or > > world writable directory - qmail is not delivering when one of above > > conditions hits. > > > > > Stop your MTA. > > > Thank you for helping me. > > > > > > -- > Stay with *nix :) > >-- Lampa
Lampa wrote:> Hello, > > MTA is qmail, and there is no problem with it (qmail is stopped for > current user - sticky bit set). Problem is dovecot - and is not > possible to stop dovecot (due to clients) >Then copy mailboxes to somewhere else and make backup there.> 2008/4/8, Tolga <tolga at ozses.net>: > >> Lampa wrote: >> >> >>> Hello, >>> >>> is there some way how to disable temporarily account or access to >>> files. I need to backup with tar, but there is problem when tar is >>> reading and some file changed (with --ignore-failed-read it continues >>> but archive is not created and without --ignore-failed-read it fails). >>> Some accounts are huge ;( Need something like qmail sticky bit or >>> world writable directory - qmail is not delivering when one of above >>> conditions hits. >>> >>> >>> >> Stop your MTA. >> >> >>> Thank you for helping me. >>> >>> >>> >> -- >> Stay with *nix :) >> >> >> > > >-- Stay with *nix :)
On Tue, 2008-04-08 at 06:48 +0200, Lampa wrote:> Hello, > > is there some way how to disable temporarily account or access to > files.If you just disable a user's access, you also need to kill any existing processes the user might have.> I need to backup with tar, but there is problem when tar is > reading and some file changed (with --ignore-failed-read it continues > but archive is not created and without --ignore-failed-read it fails).Really? I'm pretty sure I've successfully created tars where files have changed during it and without any special options. And if you're using maildir there shouldn't be any mailbox corruption since only metadata files change. You could anyway lock mailboxes one at a time. With maildir creating dovecot-uidlist.lock file (but that also means creating the .lock safely so that if it exists, wait until it's gone). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080408/2f7675bc/attachment-0002.bin>
Hello, seem to be problem of vpopmail. There is only solution to set sticky bit on whole domain but no for user (maybe it's possible but i don't know how). 2008/4/8, Timo Sirainen <tss at iki.fi>:> On Tue, 2008-04-08 at 06:48 +0200, Lampa wrote: > > Hello, > > > > is there some way how to disable temporarily account or access to > > files. > > > If you just disable a user's access, you also need to kill any existing > processes the user might have. > > > > I need to backup with tar, but there is problem when tar is > > reading and some file changed (with --ignore-failed-read it continues > > but archive is not created and without --ignore-failed-read it fails). > > > Really? I'm pretty sure I've successfully created tars where files have > changed during it and without any special options. And if you're using > maildir there shouldn't be any mailbox corruption since only metadata > files change. > > You could anyway lock mailboxes one at a time. With maildir creating > dovecot-uidlist.lock file (but that also means creating the .lock safely > so that if it exists, wait until it's gone). > >-- Lampa