# piwigo notes

##Setup

1. Ensure empty folders `config` and `gallery`.
1. run `docker-compose up`
1. Activate plugins:
- Presync AutoRename
- LocalFiles Editor
- SmartAlbums
1. Edit local config
    
     ```
     meta
    ```

1. Create folder pisacca in `/home/odroid/thedocks/piwigo/gallery/galleries` 
1. `mount --bind /mnt/media/pictures/ /home/odroid/thedocks/piwigo/gallery/galleries/picassa`
1. run `Presync AutoRename`
1. Sync
###Source
```
root@n2-plus:/mnt/media# 
rsync -av root@odroid-n2.lan:/mnt/drive/backups/velvet/PicasaStarter/pictures/Pictures/ pictures/ --delete
```

## Based on 
https://github.com/jkirk/docker-piwigo/blob/main/docker-compose.yml

```
#bind
mount --bind /mnt/media/pictures/ /home/odroid/thedocks/piwigo/gallery/galleries/picassa

# undo
umount /home/odroid/thedocks/piwigo/gallery/galleries/picassa
```

# fstab
```
/mnt/drive/backups/velvet/PicasaStarter/pictures/Pictures/ /mnt/drive/docker/projects/piwigo/piwigo/pics  none bind
umount```

