8000 GitHub - lgarron/sd-card-backup: A simple tool to backup up SD cards. (Or CFast, CFExpress, etc.)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lgarron/sd-card-backup

Repository files navigation

sd-card-backup

A simple tool to back up SD cards (or anything used to store media similar to an SD card, e.g. CFExpress B). Just plug in and run sd-card-backup to back up everything.

Installation

Using Go:

go get -u github.com/lgarron/sd-card-backup/...

Usage

Place a file at ~/.config/sd-card-backup/config.json like this:

{
  "destination_root": "/backup/path",
  "sd_card_mount_point": "/Volumes",
  "sd_card_names": [
    "KUBO",
    "NIXIE"
  ],
  "folder_mapping": [
    { "source": "DCIM",                      "destination": "DCIM"    },
    { "source": "PRIVATE/M4ROOT/CLIP",       "destination": "CLIP"    }
  ]
}

sd-card-backup will iterate through any listed cards that are mounted and back up files sorted by file-type/year/date/sd-card as follows:

Source /Volumes/KUBO/DCIM/103CANON/IMG_8868.CR2
Destination /backup/path/Images/2018/2018-04-21/KUBO/DCIM/103CANON/IMG_8868.CR2
Source /Volumes/NIXIE/DCIM/101MSDCF/DSC07203.JPG
Destination /backup/path/Images/2018/2018-01-31/NIXIE/DCIM/101MSDCF/DSC07203.JPG
Source /Volumes/NIXIE/PRIVATE/M4ROOT/CLIP/C0026.MP4
Destination /backup/path/Videos/2018/2018-02-09/NIXIE/CLIP/C0026.MP4

About

A simple tool to backup up SD cards. (Or CFast, CFExpress, etc.)

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0