FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
HydroModPy/scripts/backup_duckdb.sh at dev · HydroModPy/HydroModPy · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
HydroModPy
/
HydroModPy
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
11
Code
Issues
18
Pull requests
1
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
HydroModPy
/
scripts
/
backup_duckdb.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
14 lines (14 loc) · 312 Bytes
Breadcrumbs
HydroModPy
/
scripts
/
backup_duckdb.sh
Copy path
File metadata and controls
executable file
·
14 lines (14 loc) · 312 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!
/usr/bin/env bash
set
-euo pipefail
TS=
$(
date -u +%Y%m%dT%H%M%SZ
)
TARGET=
"
$1
"
if
[
-z
"
$TARGET
"
]
;
then
echo
"
Usage:
$0
path/to/catalog.duckdb
"
exit
2
fi
if
[
-f
"
$TARGET
"
]
;
then
cp
"
$TARGET
"
"
${TARGET}
.bak-
${TS}
"
echo
"
Backup created:
${TARGET}
.bak-
${TS}
"
else
echo
"
No file to backup:
$TARGET
"
fi
Back
|
FazBrowse Home
|
New Git URL