-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update through script - 2024-11-04 09:35:24
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
map <C-i> recolor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
BUCKET_NAME="pikachu-oasido" | ||
DATE=$(date +"%Y-%m-%d") | ||
FILENAME="${DATE}_pikachu.tar.gz" | ||
|
||
SRC_DIR="/home/ofek" | ||
DST_DIR="/tmp" # temporary directory for the tarball | ||
|
||
sudo tar -czf "${DST_DIR}/${FILENAME}" "${SRC_DIR}" | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Error creating tarball" | ||
exit 1 | ||
fi | ||
|
||
b2v3-linux file upload --no-progress "${BUCKET_NAME}" "${DST_DIR}/${FILENAME}" | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Error uploading tarball to B2" | ||
exit 1 | ||
fi | ||
|
||
# Remove temporary tarball | ||
rm "${DST_DIR}/${FILENAME}" |