DEV Community

Alexander Sack
Alexander Sack

Posted on

pvr fastcopy is here - roll your updates faster

I am excited to announce that pvr fastcopy is landing on our pvr devel channel as I write this:

With pvr fastcopy you can copy bits and pieces from one pantahub device to another without tedious download/upload wait times.

For example: You want to update your Pantahub ONE device with the lastest BPS from our Raspberry Pi 4 stable BSP release channel, you can do that with one command like:

pvr fastcopy -m "update bsp/ to latest from rpi3_bsp_stable" \
     pantahub-ci/arm_rpi4_bsp_stable#bsp \
     asacasa/rpi4_one_hotspot

Details

Copied from our PVR README

pvr fastcopy

You can copy device state or subfolders (like an Application or a BSP) from one device to another without downloading the bits to your local machine.

This only works for source devices that the user has access to. Right now that's the case for Public devices as well as for devices owned by the user itself.

Examples

Example - fast copy a device:

To fastcopy a complete device experience you would simply use:

pvr fastcopy -m "your commit message to remember" \
    https://pvr.pantahub.com/pantahub-ci/rpi4_initial_latest \
    https://pvr.pantahub.com/yournick/yourdevice

NOTE: this will delete app apps and bsp/ entries before replacing them. If you don't want that you have to use #fragment encoded in the URL to select specific source elements to copy and replace.*

Example - fastcopy a folder
To fastcopy a specific folder of your source device and replace the matching folder you coudl simply use:

pvr fastcopy -m "your commit message (copying #fragment)" \
    https://pvr.pantahub.com/pantahub-ci/rpi4_initial_latest#fragment \
    https://pvr.pantahub.com/yournick/yourdevice

Example - copy just the bsp:

pvr fastcopy -m "your commit message to file for the new revision" \
    https://pvr.pantahub.com/pantahub-ci/rpi4_initial_latest#bsp \
    https://pvr.pantahub.com/yournick/yourdevice

Example - copy applications the same way:

pvr fastcopy -m "copy pvr-sdk from source device to yourdevice" \
    https://pvr.pantahub.com/pantahub-ci/rpi4_initial_latest#pvr-sdk \
    https://pvr.pantahub.com/yournick/yourdevice

Top comments (0)