LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-04-2024, 03:31 PM   #1
Valdin
Member
 
Registered: Aug 2022
Posts: 59

Rep: Reputation: 9
Moving Large Files Out Of /home/<user>


I have large archive and other huge development files currently in my home directory and would like to move them out to another location to make backup and migration to new systems easier.

Is there a standard practice for having external user files placed in somewhere like /usr/local/<archive name>? Other than just creating the directory and chown <user>:<group> to myself?
 
Old 01-04-2024, 03:51 PM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
There's no standard place.

Personally, I create a directory called "Mo" in root ... short for "Mo' stuff". That way, if I want to make a backup of everything EXCEPT for "Mo' stuff", I can specify /???* to only backup stuff with 3+ letters.

It's a simple but effective method, since every "normal" thing in the root directory has at least 3 letters in its name.

Within "Mo", I'll create different directories owned by whoever they need to be owned by.
 
1 members found this post helpful.
Old 01-04-2024, 04:03 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Is free space a consideration? Is it one partition or do you have a separate /(root) and home? I might consider creating a separate partition and using /mnt/something
 
1 members found this post helpful.
Old 01-04-2024, 04:14 PM   #4
Valdin
Member
 
Registered: Aug 2022
Posts: 59

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by michaelk View Post
Is free space a consideration? Is it one partition or do you have a separate /(root) and home? I might consider creating a separate partition and using /mnt/something
Likely. Either a different partition or drive eventually. For now I have more than enough space.

My main concern is that there is some sort of unix(or Slackware) convention that I don't know about that assumes all user files are always under /home.
 
Old 01-04-2024, 04:20 PM   #5
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 374

Rep: Reputation: 172Reputation: 172
I don´t know about a standard practice, this is probably handled a million ways.

But there is at least one standard that I know of: the Filesystem Hierarchy Standard published by The Linux Foundation.

What you're describing might fall naturally under section 3.17, the /srv tree, which is reserved for locally-organized file collections, including source repositories. For more information on the standard: https://refspecs.linuxfoundation.org...s/ch03s17.html

You would of course have to provide enough space, perhaps by mounting a volume there.
 
1 members found this post helpful.
Old 01-04-2024, 04:21 PM   #6
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Don't worry, there's no such convention. Back in the old old days of *nix, before symlinks or even easy resizing of partitions, stuff was just crammed wherever it would fit basically.
 
1 members found this post helpful.
Old 01-04-2024, 04:46 PM   #7
Valdin
Member
 
Registered: Aug 2022
Posts: 59

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by metaed View Post
I don´t know about a standard practice, this is probably handled a million ways.

But there is at least one standard that I know of: the Filesystem Hierarchy Standard published by The Linux Foundation.

What you're describing might fall naturally under section 3.17, the /srv tree, which is reserved for locally-organized file collections, including source repositories. For more information on the standard: https://refspecs.linuxfoundation.org...s/ch03s17.html

You would of course have to provide enough space, perhaps by mounting a volume there.
First time I've heard of /srv

Thank you for the link.
 
Old 01-04-2024, 11:39 PM   #8
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 798

Rep: Reputation: 256Reputation: 256Reputation: 256
Stuff that's not personally for me (as the user) I move under /srv. There is my ftp root with things sorted by purpose. /srv is its own partition. There's places for config files, source, binaries, etc.
 
1 members found this post helpful.
Old 01-05-2024, 01:03 AM   #9
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,012

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Quote:
Originally Posted by Valdin View Post
I have large archive and other huge development files currently in my home directory and would like to move them out to another location to make backup and migration to new systems easier.
Is this because you only want to backup the directory structures that you move out from $HOME or is it because you want to keep $HOME small to make it easier to backup? Regardless of answer to that question symbolic links are really useful.

regards Henrik
 
1 members found this post helpful.
Old 01-05-2024, 03:23 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,077

Rep: Reputation: Disabled
I have most files not needed to run the system stored in an external USB SSD in a directory mounted as /data. I put also there hidden directories files like .mozilla, .thunderbird , .gnupg and .purple that I can share among systems through symlinks. Additionally I backup $HOME there. Then I backup /data in both an internal and an USB HDDs. I do all backups with rsync. I have in my TODO list to use restic instead of rsync, but I am lazy.

Last edited by Didier Spaier; 01-05-2024 at 09:40 AM. Reason: Typo fix.
 
1 members found this post helpful.
Old 01-05-2024, 08:18 AM   #11
commandlinegamer
Member
 
Registered: Dec 2007
Posts: 163

Rep: Reputation: 51
I have my own top-level directory named "archive", for files that might be shared between users. It's mostly media, so there are subdirs /archive/music, /archive/video, etc.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LibreOffice slow to open moderately large to pretty large files adanedhel728 Ubuntu 17 01-16-2016 03:46 PM
Editing extremely large files, too large for memory? SirTristan Linux - Newbie 2 12-22-2009 03:06 PM
ext3 performance -- very large number of files, large filesystems, etc. td3201 Linux - Server 5 11-25-2008 09:28 AM
LXer: This week at LWN: Large pages, large blocks, and large problems LXer Syndicated Linux News 0 09-27-2007 11:40 AM
moving large files mnauta Linux - General 2 04-27-2004 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration