-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Code of Conduct
- I promise that i have used markdown syntax to make the
code
more readable which helps to fix the problem and that I have tested the--fix
command mentioned above without success.
What happened
Bleep
What did you expect to happen
Bloop
How to reproduce
Blerp
Debug
```● Checking for installed dependencies Done!
Klipper-Backup is up to date
------------DEBUG:------------
Command: ./script.sh --debug
------------------------------
------------DEBUG:------------
github_token=****************
github_username=Tylerjet
github_repository=test
branch_name="test"
commit_username="klipper"
commit_email="klipper@klipper-test-79728cf"
# All information regarding .env can be found here:
# https://klipperbackup.xyz/configuration/
# Backup paths
# Note: script.sh starts its search in $HOME which is /home/{username}/
# The array accepts folders or files like the following example
#
# backupPaths=( \
# "printer_data/config/*" \
# "printer_data/config/printer.cfg" \
# )
#
# Using the above example the script will search for `/home/{username}/printer_data/config/*` and `/home/{username}/printer_data/config/printer.cfg`
# When backing up a folder you should always have `/*` at the end of the path so that files insde the folder are properly searched
backupPaths=( \
"printer_data/config/*" \
)
# Array of strings in .gitignore pattern git format https://git-scm.com/docs/gitignore#_pattern_format for files that should not be uploaded to the remote repo
# New additions must be enclosed in double quotes and should follow the pattern format as noted in the above link
exclude=( \
"*.swp" \
"*.tmp" \
"printer-[0-9]*_[0-9]*.cfg" \
"*.bak" \
"*.bkp" \
"*.csv" \
"*.zip" \
)
# String of additional filewatch excludes. names separated with a "|" reg-ex patterns can be used.
# Example extraFilewatchExclude="mmu_vars.cfg|macros.cfg"
------------------------------
------------DEBUG:------------
The GitHub repo Tylerjet/test exists (public)
------------------------------
------------DEBUG:------------
$HOME: /home/klipper
------------------------------
------------DEBUG:------------
$backup_path: /home/klipper/config_backup
Content of $backup_path:
total 22
drwxr-xr-x 3 klipper klipper 4 Sep 15 22:52 .
drwxr-xr-x 15 klipper klipper 22 Sep 15 22:52 ..
drwxr-xr-x 8 klipper klipper 15 Sep 15 22:52 .git
-rw-r--r-- 1 klipper klipper 181 Sep 13 04:40 README.md
------------------------------
------------DEBUG:------------
$backup_path/.git/config:
[init]
defaultBranch = test
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[pull]
rebase = false
[user]
name = klipper
email = klipper@klipper-test-79728cf
[remote "origin"]
url = https://********@github.com/Tylerjet/test.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "test"]
remote = origin
merge = refs/heads/test
------------------------------
From https://github.com/Tylerjet/test
* branch test -> FETCH_HEAD
Already up to date.
Skipping symbolic link: printer_data/config/fluidd.cfg
Backing up: /home/klipper/printer_data/config/moonraker.conf
Backing up: /home/klipper/printer_data/config/.moonraker.conf.bkp
Backing up: /home/klipper/printer_data/config/printer.cfg
------------DEBUG:------------
Content of $backup_path after rsync:
total 23
drwxr-xr-x 5 klipper klipper 6 Sep 16 23:21 .
drwxr-xr-x 15 klipper klipper 22 Sep 16 23:21 ..
drwxr-xr-x 8 klipper klipper 15 Sep 16 23:21 .git
drwxr-xr-x 2 klipper klipper 3 Sep 16 23:21 klipper-backup-restore
drwxr-xr-x 3 klipper klipper 3 Sep 16 23:21 printer_data
-rw-r--r-- 1 klipper klipper 181 Sep 13 04:40 README.md
------------------------------
Backup Moonraker DB
On branch test
Your branch is up to date with 'origin/test'.
nothing to commit, working tree clean
[test b8f6209] New backup from 09/16/2024 - 11:21:42 PM - No new changes pushed
Enumerating objects: 1, done.
Counting objects: 100% (1/1), done.
Writing objects: 100% (1/1), 224 bytes | 224.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/Tylerjet/test.git
f30cbbc..b8f6209 test -> test
branch 'test' set up to track 'origin/test'.
### Additional information
Blorp
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working