This is great, thank you for sharing. I would just add that it's always
good to make sure a backup resides elsewhere as well. I typically rsync/scp
the backup tar file to another system I have as a backup destination but a
great alternative is leveraging rclone (https://rclone.org) and placing the
complete compessed tar file on something like Dropbox/Google Drive/OneDrive
or whatever cloud service you're comfortable with. I am very new to WeeWX
and considering I'm running it on a Pi with an SD card -- I wanted to make
certain I account for the inevitable SD card failure.

On Mon, Feb 7, 2022 at 1:04 PM vince <[email protected]> wrote:

> Given everybody updating to the new 4.6.0 version, I thought I'd post a
> couple quick tar commands to back up your weewx setup.
>
> # for a packaged install using the Debian example
> tar zcvf /var/tmp/weewx-backup.tgz --exclude=.git* --exclude=__pycache__
>  /etc/weewx /usr/share/weewx /var/lib/weewx /var/www/html/weewx
>
> # for a setup.py installation
> tar zcvf /var/tmp/weewx-backup.tgz --exclude=.git* --exclude=__pycache__
>  /home/weewx
>
> Notes:
>
>    - You could choose to not back up your public_html tree but a restore
>    and weewx restart might take a rather 'long' time to rebuild the NOAA
>    files.  I found the public_html tree is pretty small so I just back it up
>    too.
>
>
>    - For my setup.py system here, I manually back up my databases weekly
>    so I (usually) skip backing that up by adding --exclude=archive to the
>    setup.py example above.
>
>
>    - There's an old sysadmin saying that "i*f you haven't done a restore,
>    you haven't done a backup*".   As an old (former) sysadmin, I agree :-)
>
> Hope this helps.
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/43d8a255-bad9-44b5-aeda-04a6bce3e360n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/43d8a255-bad9-44b5-aeda-04a6bce3e360n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAG%3D9A9bDyWL7xpuQBRjgyGpEH1ip3MDwoUte4aU5zHXK4v8Uuw%40mail.gmail.com.

Reply via email to