[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Website upload
From: |
Urs Liska |
Subject: |
Re: Website upload |
Date: |
Tue, 7 Mar 2017 14:56:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
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" <address@hidden>
> To: "Phil Holmes" <address@hidden>
> Cc: "Urs Liska" <address@hidden>; <address@hidden>
> Sent: Tuesday, March 07, 2017 12:32 PM
> Subject: Re: Website upload
>
>
> "Phil Holmes" <address@hidden> writes:
>
>> ----- Original Message ----- From: "Phil Holmes" <address@hidden>
>> To: "David Kastrup" <address@hidden>; "Urs Liska" <address@hidden>
>> Cc: <address@hidden>
>> Sent: Tuesday, March 07, 2017 11:31 AM
>> Subject: Re: Website upload
>>
>>
>>> ----- Original Message ----- From: "Urs Liska" <address@hidden>
>>> To: "David Kastrup" <address@hidden>
>>> Cc: "Phil Holmes" <address@hidden>; <address@hidden>
>>> 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?
>
--
address@hidden
https://openlilylib.org
http://lilypondblog.org
- Re: Website upload, (continued)
- Re: Website upload, Urs Liska, 2017/03/07
- Re: Website upload, David Kastrup, 2017/03/07
- Re: Website upload, Urs Liska, 2017/03/07
- Re: Website upload, David Kastrup, 2017/03/07
- Re: Website upload, Urs Liska, 2017/03/07
- Re: Website upload, David Kastrup, 2017/03/07
- Re: Website upload, Phil Holmes, 2017/03/07
- Re: Website upload, Phil Holmes, 2017/03/07
- Re: Website upload, David Kastrup, 2017/03/07
- Re: Website upload, Phil Holmes, 2017/03/07
- Re: Website upload,
Urs Liska <=
- Re: Website upload, David Kastrup, 2017/03/07
- Re: Website upload, Phil Holmes, 2017/03/07
- Re: Website upload, David Kastrup, 2017/03/07
- Re: Website upload, Phil Holmes, 2017/03/07
- Re: Website upload, Urs Liska, 2017/03/07
- Re: Website upload, Urs Liska, 2017/03/07
- Re: Website upload, Davide Liessi, 2017/03/07
- Re: Website upload, Paul, 2017/03/07
- Re: Website upload, Phil Holmes, 2017/03/07
- Re: Website upload, Davide Liessi, 2017/03/07