this post was submitted on 25 Dec 2023
2 points (100.0% liked)

Zorin OS (Linux)

56 readers
3 users here now

a lemmy community for the zorin os linux distro

founded 2 years ago
MODERATORS
 

I have revived my old laptop with zorin os 17. It's now a emby server with external HDD attached to it. I have qbittorrent on it, which downloads what o want headlessly using mobile client. But I have no way to move files from downloads folders to proper folder (i.e movie, TV ,etc). How do I do this using mobile ? Or even script to move the media to proper folder,?

all 8 comments
sorted by: hot top controversial new old
[–] ShunkW 2 points 1 year ago (1 children)
[–] BetaDoggo_ 2 points 1 year ago (1 children)

The most basic way to do this would be to enable ssh then use an sftp client on your mobile device. On the laptop run:

sudo systemctl enable sshd && sudo systemctl start sshd

I don't use sftp on mobile so I don't know what the best app for it is but there are a lot of options. Note that moving files without disabling the torrent will mess things up so make sure to do that first.

[–] Alborlin 1 points 1 year ago* (last edited 1 year ago) (1 children)

Thanks for your reply

How do I enable say on laptop? I have app for connecting to server/remote servers , it's a file manager called solid Explorer, that I can use. But once i give this command what will happen? And what is exact command in ssh to move files to folder ?

[–] BetaDoggo_ 1 points 1 year ago

The command I listed will enable ssh on the laptop. This will allow you to connect and move files with a file manager that supports sftp. From what I can tell solid explorer should work.

If you plan to move files directly via ssh you would use mv. A basic example would be the following:

mv file-to-move target-location

You can add multiple files or folders separated by a space. The last location in the command will always be the target. In most cases it will probably be faster and more convenient to use the file manager you already have.

[–] WaxedWookie 1 points 1 year ago (1 children)

I'm not a Zorin expert (just dipping my toes for now), but options would include:

  • Mounting the folders as network storage and moving remotely
  • Configuring VNC/RDP and logging in to move the files
  • Scripting the move (not something I know much about, and will probably need more info - e.g. are movies and TV series dropped to different folders, or does the script need to differentiate)
  • Using Radarr/Sonarr to manage the folders

Knowing if you're on ios or android will help with specific recommendations/workfkows too.

[–] Alborlin 1 points 1 year ago (1 children)

Thanks for reply 1.The data willove to folder on attached external HDD, 2. What is vnc/rdp? 3. Where I can search for this Trivial script ? 4. Do s radarr/sonarr move files who h they have not passed on to q bitorent ?? 5. I use Android with solid Explorer as app with which i can connect sftp, lan/smb etc kind of things

  1. Do you also know if I can connect to this server out of my home ?
[–] WaxedWookie 1 points 1 year ago

External HDD shouldn't be a big issue one way or the other for any of these solutions. The more relevant question is how structured the data is (and whether that matters) - are your torrents downloading to separate movies and TV directories, which can just be mirrored across, are your series downloading as individual episodes, and if so, do they need to be restructured to series/shoe/season/episode or similar?

VNC/RDP are remote desktop solutions

I can't help with the script, sadly... But I'd do a general search for "Linux script to move files on a scheduled basis" (or similar) - there will be guidance around rsync/rclone floating around. Filebot may be another option.

I believe the *arrs can be configured to pick up from a folder on a scheduled basis - they can certainly do it on a manually triggered basis.

You can probably connect to the server outside your home, though the specifics will vary depending on what you want to do - you'll likely need to forward ports and use a solution like duckdns, or (preferably from what I hear) configure a reverse proxy like ngnix. Port forwarding may be an issue if you're using your ISP's router.

For my part, I use usenet rather than torrents and the *arrs, which organise the files and push them to plex, which is shared remotely - I also have external access to the *arrs via port forwarding and duckdns, and a VM I can connect to via my server management page (unraid).

Probably start by taking a look at Filebot.