mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 10:28:58 +01:00
v2 relative file names
This commit is contained in:
@@ -96,7 +96,8 @@ if [ "$1" = "export" ]; then
|
|||||||
dataPath=$(readlink -f /mnt/hdd/app-data)
|
dataPath=$(readlink -f /mnt/hdd/app-data)
|
||||||
echo "# Building the Export File - this can take some time (${dataPath}) .."
|
echo "# Building the Export File - this can take some time (${dataPath}) .."
|
||||||
sudo mkdir -p ${defaultDownloadPath}
|
sudo mkdir -p ${defaultDownloadPath}
|
||||||
sudo tar -zcvf ${defaultDownloadPath}/raspiblitz-export-temp.tar.gz -X ~/.exclude.temp "${dataPath}" 1>~/.include.temp 2>/dev/null
|
# sudo tar -zcvf ${defaultDownloadPath}/raspiblitz-export-temp.tar.gz "${dataPath}" 1>~/.include.temp 2>/dev/null
|
||||||
|
sudo tar -zcvf "${defaultDownloadPath}/raspiblitz-export-temp.tar.gz" -C "$(dirname "$dataPath")" "$(basename "$dataPath")" 1>~/.include.temp 2>/dev/null
|
||||||
|
|
||||||
# delete info files from app-data after export
|
# delete info files from app-data after export
|
||||||
sudo rm /mnt/hdd/app-data/v2.migration.info 2>/dev/null
|
sudo rm /mnt/hdd/app-data/v2.migration.info 2>/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user