uci-nextcloud/tarsrc

8 lines
279 B
Bash
Executable File

#!/bin/bash
docker exec -w /var/www/html -e admin=$1 nextcloud-app /bin/sh -c 'env'
# docker exec -w /var/www/html -e admin=$1 nextcloud-app /bin/sh -c 'env | grep NEXTCLOUD_ADMIN && tar -czvf /var/www/data/${admin:-admin}/files/backups/nextcloud-src_$(date '+%y-%m-%d_%T'