uci-nextcloud/scripts/tarsrc

8 lines
279 B
Plaintext
Raw Permalink Normal View History

#!/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'