-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Labels
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
when running ~/klipper-backup/script.sh I got the message:
remote: Repository not found.
fatal: repository 'https://[email protected]/darfij/.git/' not found
remote: Repository not found.
fatal: repository 'https://[email protected]/darfij/.git/' not found
What did you expect to happen
that the git is updated
How to reproduce
start ~/klipper-backup/script.sh
Debug
mks@mkspi:~/klipper-backup$ ~/klipper-backup/script.sh -d
/home/mks/klipper-backup/.env: line 3: na: command not found
● Checking for installed dependencies Done!
fatal: repository 'https://github.com/' not found
/home/mks/klipper-backup/script.sh: line 78: [: xxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyy: unary operator expected
● Update for Klipper-Backup Available!
------------DEBUG:------------
Command: /home/mks/klipper-backup/script.sh -d
------------------------------
------------DEBUG:------------
github_token=**********
github_username=darfij
github_repository=klipper na masini 1
branch_name="main"
commit_username="mks"
commit_email==**********
# 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" \
------------------------------
------------DEBUG:------------
curl: (22) The requested URL returned error: 404
Error: no GitHub repo darfij/ found (maybe private)
------------------------------
------------DEBUG:------------
$HOME: /home/mks
------------------------------
------------DEBUG:------------
$backup_path: /home/mks/config_backup
Content of $backup_path:
total 16
drwxr-xr-x 3 mks mks 4096 Jan 23 03:01 .
drwxr-xr-x 35 mks mks 4096 Jan 23 02:54 ..
drwxr-xr-x 8 mks mks 4096 Jan 23 03:01 .git
-rw-r--r-- 1 mks mks 181 Jan 23 02:54 README.md
------------------------------
------------DEBUG:------------
$backup_path/.git/config:
[init]
defaultBranch = main
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[user]
name = mks
email = mks@mkspi-3975944
[remote "origin"]
url = https://********@github.com/darfij/.git
fetch = +refs/heads/*:refs/remotes/origin/*
------------------------------
------------DEBUG:------------
Content of $backup_path after rsync:
total 16
drwxr-xr-x 3 mks mks 4096 Jan 23 03:01 .
drwxr-xr-x 35 mks mks 4096 Jan 23 02:54 ..
drwxr-xr-x 8 mks mks 4096 Jan 23 03:05 .git
-rw-r--r-- 1 mks mks 181 Jan 23 02:54 README.md
------------------------------
On branch main
nothing to commit, working tree clean
remote: Repository not found.
fatal: repository 'https://[email protected]/darfij/.git/' not found
remote: Repository not found.Additional information
same error if repo is private or public (although i presume it should work on private repos)
Reactions are currently unavailable