You are not logged in.

#1 2018-05-02 18:37:58

telis80
Member
Registered: 2015-03-26
Posts: 108

Rsync does not write to external drive

Hi, i am trying to backup the main system without the home directory, looked into wiki on how to do it. Although it does show me the files to be copied rsync does not copy them. Any ideas?

rsync -aAXv --dry-run --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/swapfile","/swapfile2","/home/*"} / /run/media/$username/$diskname/sysbackup 

i have excluded the two swap files, and the home directory for now, what am i doing wrong?


I live at the Internet
-Edward Snowden

Offline

#2 2018-05-02 18:47:31

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,721

Re: Rsync does not write to external drive

I assume you tried that command without the --dry-run.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2018-05-02 18:48:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Re: Rsync does not write to external drive

Errrr ... to rule out the obvious: you do not expect copies while issuing "--dry-run", are you?

Offline

#4 2018-05-02 18:49:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Rsync does not write to external drive

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-05-02 18:56:24

telis80
Member
Registered: 2015-03-26
Posts: 108

Re: Rsync does not write to external drive

The blog i read it was saying it is for the terminal output, i am embarrassed tongue


I live at the Internet
-Edward Snowden

Offline

Board footer

Powered by FluxBB