Direkt zum Hauptbereich

Backup mit Rsync

rsync -rva --exclude="gemeinsame Dokumente/Videorecorder"
--delete-excluded --delete-after "/home/" "stefan@192.168.0.30:Backup/"

Parameter (auszug aus der manpage):

-c, --checksum
This changes the way rsync checks if the files have been changed and are
in need of a transfer. Without this option, rsync uses a "quick check"
that (by default) checks if each file's size and time of last
modification match between the sender and receiver. This option changes
this to compare a 128-bit MD4 checksum for each file that has a matching
size. Generating the checksums means that both sides will expend a lot
of disk I/O reading all the data in the files in the transfer (and this
is prior to any reading that will be done to transfer changed files), so
this can slow things down significantly.
The sending side generates its checksums while it is doing the
file-system scan that builds the list of the available files. The
receiver generates its checksums when it is scanning for changed files,
and will check sum any file that has the same size as the corresponding
sender's file: files with either a changed size or a changed checksum
are selected for transfer.
Note that rsync always verifies that each transferred file was correctly
reconstructed on the receiving side by checking a whole-file checksum
that is generated as the file is transferred, but that automatic after
the-transfer verification has nothing to do with this option's
before-the-transfer "Does this file need to be updated?" check.

-v, --verbose
This option increases the amount of information you are given during the
transfer. By default, rsync works silently. A single -v will give you
information about what files are being transferred and a brief summary
at the end. Two -v flags will give you information on what files are
being skipped and slightly more information at the end. More than two -v
flags should only be used if you are debugging rsync.
Note that the names of the transferred files that are output are done
using a default --out-format of "%n%L", which tells you just the name of
the file and, if the item is a link, where it points. At the single -v
level of verbosity, this does not mention when a file gets its
attributes changed. If you ask for an itemized list of changed
attributes (either --itemize-changes or adding "%i" to the --out-format
setting), the output (on the client) increases to mention all items that
are changed in any way. See the --out-format option for more details.

-a, --archive
This is equivalent to -rlptgoD. It is a quick way of saying you want
recursion and want to preserve almost everything (with -H being a
notable omission). The only exception to the above equivalence is when
--files-from is specified, in which case -r is not implied.
Note that -a does not preserve hardlinks, because finding
multiply-linked files is expensive. You must separately specify -H.

-r, --recursive
This tells rsync to copy directories recursively. See also --dirs (-d).
Beginning with rsync 3.0.0, the recursive algorithm used is now an
incremental scan that uses much less memory than before and begins the
transfer after the scanning of the first few directories have been
completed. This incremental scan only affects our recursion algorithm,
and does not change a non-recursive transfer. It is also only possible
when both ends of the transfer are at least version 3.0.0. Some options
require rsync to know the full file list, so these options disable the
incremental recursion mode. These include: --delete-before,
--delete-after, --prune-empty-dirs, and --delay-updates. Because of
this, the default delete mode when you specify --delete is now
--delete-during when both ends of the connection are at least 3.0.0 (use
--del or --delete-during to request this improved deletion mode
explicitly). See also the --delete-delay option that is a better choice
than using --delete-after.

Kommentare

Beliebte Posts aus diesem Blog

Open DRM-Free Unencrypted DVB-T2 Tv and Radio in Austria

Most things in Austria terestical TV got encrypted since DVB-T got shut down, but there are still three TV channels and three Radio Channels unencrypted. I had some hard time to find out how to get it working using linux... and non existing documentation of the sender did not help. Howerver... if you have use for detailed channel setup arround vienna, take a look: Tvheadend seems to lack channel search support using DVB-T2, but puzzeling every value together works fine: Mux A-WNB Channel Frequency: 498000000 Bandwitdh: 8MHz Constellation; QAM/16 Mux B2 Channel Frequency: 578000000 Bandwitdh: 8MHz Constellation; QAM/16 Unstable Twin Tuner I am using some twin tuner. That was not supported on older kernel version, but is now supported on current versions. Great? nope. The system/tvheadend gets unstable if two tuner are enabled running for weeks. After disabling one tuner, tvheadend runs reliable for months. List of unencrypted streams Example stream info tv channel   Surround sound Too

Cleanup your windows machine

still working: Use these lines to get your windows system cleaned up a bit and free your disk from old temporary and backup files: RD %temp%\ /S /Q rd /s /q C:\Windows\ServiceProfiles\NetworkService\AppData\Local\VSEQT\QTController rd %windir%\temp\ /s /q rd C:\TEMP\ /s /q rd C:\Quarantine /s /q rd "%userprofile%\AppData\Local\Temp\"  /s /q del C:\Windows\Installer\.tmp RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\" RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\" RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\" RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v3.0\Temporary ASP.NET Files\" RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v3.5\Temporary ASP.NET Files\" RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\" RD /S /Q "%userprofile%\AppData\Local\Microso

pdf to dxf

if you get a cad plan in pdf format you have a problem: Pdf can not be loaded in most cad programs. I used pstoedit to solve this problem. Pstoedit is a free tool to convert pdfs to dxf. What you have to do: Install pstoedit Install ghostscript shot at your pdfs: pstoedit.exe <pdfSource> <dxfOutput> -f dxf thanks to the author of pstoedit! Here is the pstoedit.exe -help output: No output format specified (-f option) and format could not be uniquely deduced from suffix .dxf of output file Available formats :     psf:            .fps:    Flattened PostScript (no curves)     (built-in) -------------------------------------------     ps:            .spsc:    Simplified PostScript with curves     (built-in) -------------------------------------------     debug: