Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #239957
| From | Richard Hector <richard@walnut.gen.nz> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: copy directory tree, mapping to new owners |
| Date | 2021-09-14 08:20 +0200 |
| Message-ID | <CX9Xs-mO-13@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <CWm0F-15d-3@gated-at.bofh.it> <CWmN3-1EN-1@gated-at.bofh.it> <CWrD3-56O-1@gated-at.bofh.it> <CWHou-6Li-5@gated-at.bofh.it> <CWOgh-39K-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 13/09/21 7:04 pm, tomas@tuxteam.de wrote: > On Mon, Sep 13, 2021 at 11:45:02AM +1200, Richard Hector wrote: >> On 12/09/21 6:52 pm, john doe wrote: > > [...] > >> >If you are doing this in a script, I would use a temporary directory. >> >That way, in case of failure the destination directory is not rongly >> >modified. >> > >> >EG: >> > >> >$ rsync <src-dir> <tmp-dir> >> > >> >Make <tmp-dir> the way you want it to be. >> > >> >$ rsync <tmp-dir> <dest-dir> >> >> That is true, but firstly it would require more available space [...] > > This isn't necessary, as you could replace the second `rsync' by a `mv' > (provided your temp tree is on the same storage volume as your target > dir, that is). I was assuming the suggestion was to rsync the source to the temp while the destination still exists, before rsyncing or mv'ing over the top of it. Total of 3 copies (temporarily) rather than 2. Cheers, Richard
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
copy directory tree, mapping to new owners Richard Hector <richard@walnut.gen.nz> - 2021-09-12 02:50 +0200
Re: copy directory tree, mapping to new owners Greg Wooledge <greg@wooledge.org> - 2021-09-12 03:00 +0200
Re: copy directory tree, mapping to new owners Richard Hector <richard@walnut.gen.nz> - 2021-09-12 03:50 +0200
Re: copy directory tree, mapping to new owners john doe <johndoe65534@mail.com> - 2021-09-12 09:00 +0200
Re: copy directory tree, mapping to new owners Andrei POPESCU <andreimpopescu@gmail.com> - 2021-09-12 12:30 +0200
Re: copy directory tree, mapping to new owners Richard Hector <richard@walnut.gen.nz> - 2021-09-13 01:50 +0200
Re: copy directory tree, mapping to new owners <tomas@tuxteam.de> - 2021-09-13 09:10 +0200
Re: copy directory tree, mapping to new owners Richard Hector <richard@walnut.gen.nz> - 2021-09-14 08:20 +0200
Re: copy directory tree, mapping to new owners <tomas@tuxteam.de> - 2021-09-14 09:00 +0200
Re: copy directory tree, mapping to new owners David Wright <deblis@lionunicorn.co.uk> - 2021-09-14 15:50 +0200
Re: copy directory tree, mapping to new owners Richard Hector <richard@walnut.gen.nz> - 2021-09-15 01:00 +0200
Re: copy directory tree, mapping to new owners l0f4r0@tuta.io - 2021-09-12 09:00 +0200
Re: copy directory tree, mapping to new owners Curt <curty@free.fr> - 2021-09-12 16:30 +0200
Re: copy directory tree, mapping to new owners l0f4r0@tuta.io - 2021-09-12 18:40 +0200
Re: copy directory tree, mapping to new owners Richard Hector <richard@walnut.gen.nz> - 2021-09-13 01:50 +0200
Re: copy directory tree, mapping to new owners l0f4r0@tuta.io - 2021-09-12 09:20 +0200
Re: copy directory tree, mapping to new owners Teemu Likonen <tlikonen@iki.fi> - 2021-09-12 09:50 +0200
Re: copy directory tree, mapping to new owners <tomas@tuxteam.de> - 2021-09-12 10:10 +0200
Re: copy directory tree, mapping to new owners Richard Hector <richard@walnut.gen.nz> - 2021-09-13 02:10 +0200
csiph-web