Comments (8)
Can confirm that both binaries is running great om my two ARM64 systems. Thanks!π
from autorestic.
Hey,
Yes! would love to. restic itself does not have native binaries as of now.
I'm quite positive that restic and autorestic however would run fine with rosetta using the normal amd64 version.
Probably you tried the install script and it failed as the native version does not recognize the new architecture.
Could you run the following commands uname
and uname -m
and tell me what is coming back?
Also, if you install manually install restic (from brew e.g.) and autorestic from the release pages (the darwin one). it should work fine.
from autorestic.
uname -m returns arm64 which is what Apple usually call binaries for their Apple Silicon chips. My odroid-n2 running Manjaro ARM returns aarch64.
Maybe the install script should search for both arm64 and aarch64 since they are the same?
from autorestic.
Ok perfect, so it's the usual arm64
, awesome. Restic itself has no binaries for it though yet. I've added arm build for darwin and updated the install script. Could you confirm that it works?
from autorestic.
Making progress! :)
Just tested the install script on my MacBook and found two bugs. The script outputs "Successfully installed autorestic" even though autorestic doesn't get installed to /usr/local/bin. Maybe add a condition that the file needs to be there before printing it?
Also, got permission errors and the program didn't get installed. See the output below:
β sudo curl -s https://raw.githubusercontent.com/CupCakeArmy/autorestic/master/install.sh | bash
darwin
arm64
/usr/local/bin/autorestic.bz2: Permission denied
bzip2: Can't open input file /usr/local/bin/autorestic.bz2: No such file or directory.
chmod: /usr/local/bin/autorestic: No such file or directory
bash: line 40: autorestic: command not found
Successfully installed autorestic
~
β ls /usr/local/bin/
total 0
drwxr-xr-x 16 root wheel 512B Apr 26 14:04 .
drwxr-xr-x 7 root wheel 224B Mar 9 21:53 ..
lrwxr-xr-x 1 root wheel 68B Mar 7 20:15 code -> /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code
lrwxr-xr-x 1 root wheel 62B Feb 11 22:18 com.docker.cli -> /Applications/Docker.app/Contents/Resources/bin/com.docker.cli
lrwxr-xr-x 1 root wheel 54B Feb 11 22:18 docker -> /Applications/Docker.app/Contents/Resources/bin/docker
lrwxr-xr-x 1 root wheel 77B Feb 11 22:18 docker-compose -> /Applications/Docker.app/Contents/Resources/bin/docker-compose/docker-compose
lrwxr-xr-x 1 root wheel 73B Feb 11 22:18 docker-credential-desktop -> /Applications/Docker.app/Contents/Resources/bin/docker-credential-desktop
lrwxr-xr-x 1 root wheel 75B Feb 11 22:18 docker-credential-ecr-login -> /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login
lrwxr-xr-x 1 root wheel 77B Feb 11 22:18 docker-credential-osxkeychain -> /Applications/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain
lrwxr-xr-x 1 root wheel 72B Feb 28 19:23 github -> /Applications/GitHub Desktop.app/Contents/Resources/app/static/github.sh
lrwxr-xr-x 1 root wheel 56B Feb 11 22:18 hub-tool -> /Applications/Docker.app/Contents/Resources/bin/hub-tool
lrwxr-xr-x 1 root wheel 67B Feb 11 22:18 hyperkit -> /Applications/Docker.app/Contents/Resources/bin/com.docker.hyperkit
lrwxr-xr-x 1 root wheel 55B Feb 11 22:18 kubectl -> /Applications/Docker.app/Contents/Resources/bin/kubectl
lrwxr-xr-x 1 root wheel 55B Feb 11 22:18 kubectl.docker -> /Applications/Docker.app/Contents/Resources/bin/kubectl
lrwxr-xr-x 1 root wheel 54B Feb 11 22:18 notary -> /Applications/Docker.app/Contents/Resources/bin/notary
lrwxr-xr-x 1 root wheel 65B Feb 11 22:18 vpnkit -> /Applications/Docker.app/Contents/Resources/bin/com.docker.vpnkit
from autorestic.
Mhhh /usr/local/bin
should not belong to root. It does not in normal installations of macOS or Linux. Also the script should be run with sudo, however I wonder how it failed permissions while being run as sudo π€
You are right, the exit code should be 1 and should not say it's installed successfully π
from autorestic.
Yeah the same thing happened on my odroid-n2 running Manjaro ARM. But there I could do:
su
curl -s https://raw.githubusercontent.com/CupCakeArmy/autorestic/master/install.sh | bash
and after that it installed without any problems.
Instead of using the install script on macOS, maybe offer Autorestic through Homebrew, MacPorts and the Nix package manager?
from autorestic.
Yes homebrew would be a great option, I have never looked into how it works though. I'll open another ticket for brew. However if the binaries work on arm I would like to close this ticket :) let me know π
from autorestic.
Related Issues (20)
- Info command prints out secret keys
- Hooks to have access to location path HOT 1
- Cron updates timestamp even when backup fails
- `uninstall` command is broken
- Docker compose example in the docker installation guide
- 'locations[storage]' has invalid keys: forgetoption HOT 4
- Keep up with restic releases HOT 1
- Restic repository not initialized by default in GCP
- Bug: Docker volume backup to B2 fails ("context deadline exceeded") HOT 1
- forget dryRun is always false on backup task
- Support backing up Docker volumes via the REST backend
- autorestic running backup.ymlοΌrestic print 'unknown flag: --use-fs-snapshot' HOT 1
- Copy a repo
- Add a cron option to the forget/prune policies
- Suggestion: don't require 'from' key in locations that use include arguments.
- $PATH being ignored by autorestic HOT 4
- Showing during the backup the progress in percentage of every single location
- Add more verbose error messages HOT 4
- Flag locations as paused
- Error when running as docker container
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autorestic.