Quantcast
Channel: MX Linux Forum
Viewing all articles
Browse latest Browse all 4157

MX Help • Re: Moving /home directory

$
0
0
CharlesV's link is more complete, but the copy command they use probably won't copy . files correctly (or at all). Use the Thunar steps from rokytnji.1's link for that. Personally I use tar for this step, which has the benefit of making you a nice backup file.

Very stripped down version:

Code:

#!/bin/bash# # # Description# Make a Daily backup of /home directoryDirHome='/home'DirUser='username'Back="pathtobackup/backupfilename"TempFile01="pathtoLogDir/logfile.txt"cd "$DirHome"# Put all tar commands on their own lines so we can read it.tar \  --create \  --gzip \  --file="$Back" \  "$DirUser" \  2>&1 \  | tee "$TempFile01"  
HTH

Statistics: Posted by Michael-IDA — Thu Apr 10, 2025 10:21 pm



Viewing all articles
Browse latest Browse all 4157

Trending Articles