Skip to content

"No appdata directory found for 'my-container'. Skipping..." #1

@DesertCookie

Description

@DesertCookie

I have set up the script as pre-container-backup- and post-run-scripts. Running it I get above's message for every container:

Image

This is the setup section as I have configured it:

################################################################################
#                            USER CONFIG (GENERAL)                             #
################################################################################
APPDATA_SOURCE_DATASET="cache/appdata"  # Source dataset of your appdata.
LOG_TO_STATUS_PAGE=true  # Set to 'true' to also display log messages on the Appdata.Backup "Status/Log" Web GUI page.
BETA_VERSION=false  # Set to 'true' if using the BETA version of Appdata.Backup plugin.
################################################################################
#                        USER CONFIG (SNAPSHOTS/SANOID)                        #
################################################################################
SANOID_CONFIG_DIR="/etc/sanoid"  # Directory of your default sanoid config files. They should already be located at "/etc/sanoid".
# Each docker containers dataset that is processed will have a sub-folder created for it (using the dataset basename) within SANOID_CONFIG_DIR containing it's own sanoid config files.
# Set sanoid retention policy below. "How many X of each timeframe will be kept before deleting old snapshots of said timeframe?" Snapshot pruning is done in 'POST-RUN' to minimize docker downtime.
SNAPSHOT_HOURS="0"
SNAPSHOT_DAYS="7"
SNAPSHOT_WEEKS="4"
SNAPSHOT_MONTHS="3"
SNAPSHOT_YEARS="0"
SANOID_CONFIG_UPDATE=true  # Set to 'true' to have the script *also* automatically update the config files with any changes made to the retention policy above.
ALLOW_SNAPSHOTS_OUTSIDE_OF_RETENTION_POLICY=false  # sanoid will not take new snapshots if ran before its next retention policy interval. Set to 'true' to allow additional '_extra' snapshots to be taken.
################################################################################
#                            USER CONFIG (POST-RUN)                            #
################################################################################
# Post-Run processes the docker containers that are set to 'skip = no' in Appdata.Backup config. For the tarfile option, the docker containers must also to be set to 'skip Backup = yes'.
# DELETE_EXTRA_SNAPSHOTS_OLDER_THAN_X_DAYS="7"  # Uncomment this line to delete any '_extra' snapshots (taken when ALLOW_SNAPSHOTS_OUTSIDE_OF_RETENTION_POLICY=true) that are older than this many days.
# Below you can define a list of any extra datasets (full paths) that you want to snapshot and/or replicate and/or rsync from the most recent snapshot. (sanoid config sub-directory will be created as the basename of each dataset)
EXTRA_DATASETS=(  # WARNING: extra datasets will be replicated to 'DATASET_TO_REPLICATE_TO/[basename of extra dataset]' (ie 'pool_main/some_share/stuff' to 'pool_two/backup_appdata/stuff')
  # "pool_main/appdata/plexato"
  # "pool_main/some_share/stuff"
)
SNAPSHOT_EXTRA_DATASETS=false  # Take snapshots of the EXTRA_DATASETS.
# For the REPLICATE option, uncomment the line below and define the name of the parent dataset that you want to replicate the source datasets to. THIS DATASET(S) WILL BE CREATED AUTOMATICALLY if it does not exist!
# DATASET_TO_REPLICATE_TO="pool_ssds/backup_appdata"
REPLICATE_CONTAINERS=false  # Replicate the datasets/snapshots of docker containers appdata.
REPLICATE_EXTRA_DATASETS=false  # Replicate the datasets/snapshots of EXTRA_DATASETS.
MOUNT_REPLICATED_DATASETS=false  # If all replicated datasets need to be mounted before replication *and* unmounted after replication.
SYNCOID_ARGS="-r --delete-target-snapshots --force-delete --no-sync-snap --quiet"  # OPTIONALLY (and carefully) customize the syncoid command line arguments. See: https://github.com/jimsalterjrs/sanoid/wiki/Syncoid#options
# For TAR and RSYNC options, uncomment the line below and specify the permanent dataset to clone recent snapshots to temporary datasets (ie 'pool_main/temp/_temp_plex'). THIS DATASET(S) WILL BE CREATED AUTOMATICALLY if it does not exist!
# DATASET_TO_TEMP_CLONE_TO="pool_main/temp"  # WARNING: any datasets that start with '_temp_' within this dataset will be DESTROYED when the script is ran!
# Tar datasets contents from most recent snapshots. Tarfiles are saved to the same generated backup folder that Appdata.Backup would save them to. 
TAR_CONTAINERS=true  # Tar containers from most recents snapshots. Tar compression and exclude settings are inherited from Appdata.Backup config.
TAR_EXTRA_DATASETS=false  # Tar EXTRA_DATASETS from most recent snapshots.
# Rsync datasets contents from most recent snapshots. Folders are created in the same generated timestamped backup folder that Appdata.Backup saves the tarfiles to. 
RSYNC_CONTAINERS=false  # rsync containers appdata from most recent snapshots. Exclude settings are inherited from Appdata.Backup config.
RSYNC_EXTRA_DATASETS=false  # rsync EXTRA_DATASETS from most recent snapshots.
################################################################################
#                              END OF USER CONFIG                              #
################################################################################

My disk setup is comprised of single-disk ZFS:

Image

I'd appreciate some insight into what might be the issue here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions