Am 07.03.2017 um 14:51 schrieb Phil Holmes: > Sorry for top post - as you see my email client doesn't properly > indent your reply. > > Anyway, I've now done the following command: > > rsync -n -aO -d --no-r --delete -i $BUILD/out-website/website/ > $DEST/website/ &>rs.txt > > Which gives the output in the attached file. I guess this means it > would only delete the filenames preceded by "*deleting" -
Looks like it. > I assume the other files named are just for information? No, it states what it would do with them, i.e. probably uploading (or maybe it also states equality, I don't know). So probably it should be safe to do the same *without* the -n option, but probably *after* doing a backup, just in case. And *after* someone else has confirmed that too. Then we should probably have a redirect, if that's possible for all http://lilypond.org/gsoc.* URLs pointing to the English version of google-summer-of-code.html until April 3. Urs > > -- > Phil Holmes > > > ----- Original Message ----- From: "David Kastrup" <d...@gnu.org> > To: "Phil Holmes" <m...@philholmes.net> > Cc: "Urs Liska" <u...@openlilylib.org>; <lilypond-devel@gnu.org> > Sent: Tuesday, March 07, 2017 12:32 PM > Subject: Re: Website upload > > > "Phil Holmes" <m...@philholmes.net> writes: > >> ----- Original Message ----- From: "Phil Holmes" <m...@philholmes.net> >> To: "David Kastrup" <d...@gnu.org>; "Urs Liska" <u...@openlilylib.org> >> Cc: <lilypond-devel@gnu.org> >> Sent: Tuesday, March 07, 2017 11:31 AM >> Subject: Re: Website upload >> >> >>> ----- Original Message ----- From: "Urs Liska" <u...@openlilylib.org> >>> To: "David Kastrup" <d...@gnu.org> >>> Cc: "Phil Holmes" <m...@philholmes.net>; <lilypond-devel@gnu.org> >>> Sent: Tuesday, March 07, 2017 11:08 AM >>> Subject: Re: Website upload >>> >>> >>>> Maybe someone with privileges on the server could manually run rsync >>>> with the --delete and the -n (dry run) option and presenting us >>>> with the >>>> list of files that would be deleted remotely. Probably this would >>>> quickly tell us if we have legitimate "orphaned" files. >>>> >>>> Urs >>> >>> >>> That sounds like a good plan. AFAICS I would need to run the line >>> from make-website.sh, but with those added options: >>> >>> rsync -raO -n --delete $BUILD/out-website/website/ $DEST/website/ >>> >>> ?? >> >> >> Hmm. Tried that. No output. > > -n, --dry-run > This makes rsync perform a trial run that doesn’t make > any changes (and produces mostly the same output as a > real run). It is most commonly used in combination > with the -v, --verbose and/or -i, --itemize-changes > options to see what an rsync command is going to do > before one actually runs it. > > The output of --itemize-changes is supposed to be > exactly the same on a dry run and a subsequent real run > (barring intentional trickery and system call > failures); if it isn’t, that’s a bug. Other output > should be mostly unchanged, but may differ in some > areas. Notably, a dry run does not send the actual > data for file transfers, so --progress has no effect, > the bytes sent, bytes received, literal data, and > matched data statistics are too small, and the speedup > value is equivalent to a run where no file transfers > were needed. > > Maybe add -i to the options? > > How did you catch the output? On a terminal or via redirection? Maybe > you need to redirect stderr as well? > -- u...@openlilylib.org https://openlilylib.org http://lilypondblog.org _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel