Skip to content

Commit

Permalink
update through script - 2024-11-04 09:35:24
Browse files Browse the repository at this point in the history
  • Loading branch information
oasido committed Nov 4, 2024
1 parent 02eab03 commit d9eb330
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .config/zathura/zathurarc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
map <C-i> recolor

25 changes: 25 additions & 0 deletions .local/bin/scripts/b2-backup.sh
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}"

0 comments on commit d9eb330

Please sign in to comment.