←back to thread

286 points joegibbs | 3 comments | | HN request time: 0.625s | source
Show context
jsjohnst ◴[] No.42143464[source]
Wish this could be reduced lower. If I don’t unlock my phone in a day, something is up and extra paranoia is warranted.
replies(8): >>42143530 #>>42143855 #>>42144157 #>>42144244 #>>42144640 #>>42144790 #>>42145066 #>>42145181 #
astrea ◴[] No.42143855[source]
After reading your comment, I was interested in whether or not I could achieve this through the built-in Shortcuts app. Unfortunately, "Restart" is not an available action.

Edit: Actually, I was looking in the wrong place. It’s an option for the "Shut Down” action. Thanks, @jwond!

replies(5): >>42143912 #>>42143942 #>>42144040 #>>42144865 #>>42144952 #
godelski ◴[] No.42144952[source]
While we're on the topic of Shortcuts, does anyone know how to do decent data transfer? I've been wracking my head to figure out how to replace my termux script on Android that would sync photos to my home computer whenever I was on my local wifi (or wifi and tailscale).

I know shortcuts has an ssh action but it appears quite buggy and if I try to do any real bash scripting or wanting to not overwrite existing backups it hangs. It doesn't handle

  [[ ! -a "$FILE" ]] && cat /dev/stdin "$FILE"
Even with more formal if statement notation. Best I have come up with is a very painful shortcut that repeats this for each thing I want to sync

  if [[ ! -a "$FILE" ]];
  then
     cat /dev/stdin "$FILE"
  else
     cat /dev/stdin /dev/null
  fi
Seems to hate functions. iSH and others can't seem to access the photos library. There's got to be some way I can get those out of the sandbox. (God damn is the app buggy. This is worse than programming in brainfuck)
replies(1): >>42145037 #
1. giamma ◴[] No.42145037[source]
I am using an app for this. It's called WebDavNav+ and there is a free version WebDavNav for evaluation.

You can create sync configurations and switch on auto sync.

I have an Odroid HC4 with Open Media Vault and docker which is my personal NAS. It runs a WebDav container and so on a daily basis my iPhone is backing up photos to my NAS using WebDavNav+.

replies(1): >>42145202 #
2. godelski ◴[] No.42145202[source]
Thanks! I mean I don't need anything fancy and honestly, I don't want to run a web server (I will if that's what's needed, it's better than this Shortcuts hell). I feel I shouldn't need fancy tools to do some pretty basic things, you know?

I'll be honest, I'm just a bit pissed Apple intentionally handicaps powerusers, and pushes people into their paid solutions. It's one thing to offer a paid solution, it's another thing to create a problem and then sell the solution. I mean just an iCloud backup isn't even good enough. Don't they know 3-2-1?

replies(1): >>42145662 #
3. giamma ◴[] No.42145662[source]
I see your point. I already had the NAS in place so it was a nobrainer for me, but if you just want to backup to computer you can still run a light webdav server on your computer. For example, I am using dufs [0], which is very easy to deploy and configure.

[0] https://github.com/sigoden/dufs