Disks software

This is a collection of appropriate software to deal with disks. smartmontools (smartctl) badblocks nmon iotop

March 10, 2020 · Alberto Casado

git-annex

Create a repository on GitLab Clone repo git clone git@gitlab.com:group/repo.git git clonne https://gitlab.com/acbg/repo.git git clone ~/repo.git Init annex cd repo; git annex init 'description of the annex' Copy, remove, modify files Add files… git annex add . …and commit git commit -m 'Initial commit' Change filenames or modify archives git mv ab.jpg a.jpg Commit again git commit -m 'Changed file name' Sync master and git-annex branches, not files content git push origin master git-annex ...

March 10, 2020 · Alberto Casado

avconv

Extract audio from a video To see the audio streams in the file: avconv -i video_in.webm To extract stream 1: avconv -i video_in.webm -map 0:1 -acodec copy -vn audio_out.ogg or avconv -i orig.webm -c:a libvorbis -b:a 128k -vn target.ogg Convert an flv of wmv video to webm (vorbis) avconv -i ./input_file.flv -y -c:v libvpx -b:v 450k -c:a libvorbis -b:a 128k ./output_file.webm Convert an mp3 audio to ogg (libvorbis) avconv -i in.mp3 -map 0:0 -codec libvorbis -format ogg out.ogg Convert .avi to .webm, And select only video track 0, audio track 2, bitrate 800 and framerate 24: ...

March 9, 2020 · Alberto Casado

Rsync

Basic sync rsync -ivaz --delete --progress --stats --exclude='bak' --exclude='mail' /source/ /destin/ -i: –itemize -v: –verbose -a: -rtp… -z: –compress rsync --existing -nucRPhivaz --stats --delete /source/ /destination/ -n: –dry-run -u: –update -c: –checksum -R: –relative, create directories in the destination if they don’t exist -P: –progress –partial -h: –human-readable --delete: delete files not present in the source --stats: give some statistics --existing: don’t create new files in the destination, only transfer files that exist in the destination ...

March 9, 2020 · Alberto Casado