Skip to main content

CamBak

This small tool automate the derushing process of your SD Cards for all your cameras.

CamBak sort all your files from your SD Card per date, camera and per type of media and copy it to your computer or on a network volume. Here's is the destination architecture:

/ *destination_folder*
├── *date_of_shots (example: 2020-02-13)*
│   └── *camera_name*
│       ├── Pictures
│       ├── RAW
│       └── Videos

Supported cameras architectures

  • Sony (tested with NEX6 and HDR-AS series, a6400 and AS100V)

If a camera is not supported, you can create a new file on the cameras folder with the brand name, add a class inherited of Camera and add each paths and extensions for each type of medias (glog can be used for paths).

Here's is an example for Sony NEX cameras (file Sony.py):

class SonyNex(Camera):
    """General support for Sony NEX cameras (Alpha 5, 6, 7 and 9)"""

    img_folders = ["DCIM/*MSDCF"]
    raw_folders = img_folders
    vid_folders = ["PRIVATE/M4ROOT/CLIP"]

    img_extensions = [".JPG"]
    raw_extensions = [".ARW"]
    vid_extensions = [".MP4"]

Usage

➜ python cambak --help
usage: cambak [-h] -t TYPE -n NAME [-f] src dest

positional arguments:
  src                   Source folder (mounted card/usb camera volume)
  dest                  Destination folder (local, network volume)

optional arguments:
  -h, --help            show this help message and exit
  -t TYPE, --type TYPE  Type of camera
  -n NAME, --name NAME  Name of the camera
  -f, --force           Override if file already exists in the dest folder

Example:

cambak /mnt/sd-card /mnt/moon-smb/cam-backups -t SonyNex -n A6400

Installation

WIP

Release files for cambak 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cambak 0.1.1
File Size Uploaded
cambak-0.1.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cambak 0.1.1
File Interpreter ABI Platform
cambak-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / cambak-0.1.1.tar.gz

Download URL cambak-0.1.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
69e7e756e6bef3027bf35ef9136dedc398f7578c0d8620160d1801ca4c7db24a
BLAKE2b-256 checksum
How to use checksums
ca2bda2f6adf3aa5662cbd8aaa7e66b36cb505587d520737b4c0abc0a1e1e1ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.1 Linux/5.5.4-arch1-1

Release files / cambak-0.1.1-py3-none-any.whl

Download URL cambak-0.1.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6623aa59aa8e6e5af844904305fd07c5fa73c1c151b9bc67cccf6ac3d24b4c33
BLAKE2b-256 checksum
How to use checksums
089452b29284db577d09da657d6fc5d62da61be4007489b80045ab784c80aa36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.1 Linux/5.5.4-arch1-1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page