I just realized too that it isnt possible anymore to upload a AUR Package to the Arch AUR with a browser. Last time (13 Years ago) i uploaded a AUR Package for a Brother Printer (drivers).
It would be nice, if somebody could help me to edit my PKG in this way, that it could be uploaded to AUR and its pulls the last git and to upload this PKG to AUR
If $DESTINATION can be anything other than /, and seems that it can since it’s variable in your conf, also do:
line 43
if [ "$DESTINATION" = "/" ]
Also you forgot to do line 40 (hard links can also have spaces / weird characters?)
"$RSYNCEXCLUDES"
Definitely do line 15, coz those paths are variables:
borg mount "$BORGREPO" "$MOUNTPOINT"
Not sure if line 4 can be changed? But still, if someone decides to run this script as portable and change it to something with spaces in path, i’d wrap it too, just in case:
source "/etc/borgrestore/borgrestore.conf"
Just wrap paths always, you never know what someone might do or have in path
Those are just obvious stuff which can go wrong, but other than that you can just test it inside VM with paths that have spaces and see if it works as you intended
Yeah, that not works. Im testing right now (with --dry-run). And then rsync ignores the excludes. " didnt work right here. Im searching on the internet what would be correct.
declare -a EXCLUDE_PATHS=("FIRST_PATH" "SECOND_PATH" "PATH WITH SPACE")
rsync $(printf -- "--exclude=\"%s\" " "${EXCLUDE_PATHS[@]}") # other options here
Yes, im logged in in the AUR. But the upload button is missing. But thats wanted. In the Wiki is written that uploading a package to AUR is now only possible over git/ssh if i understand it right. I give it a look later how to do it right.