Archives pour la catégorie LINUX

Rappel linux

Canaux

stdin 0
stdout 1
stderr 2
>& redirige les 2 canaux de sortie dans un seule fichier

cmd 2>error.log
ls -l >resultat.txt 2>&1

exec ouverture des canaux 3 a 9
exec 3>dump.log
ls -l >&3
tout redirection dans canal 3 sera ecrit dans fichier dump.log

exec 3>&-
fermeture  du canal

—————————————————————————-

!! //Rappel de la dernière commande
!23 //La 23ème commande
!-2 //L'avant-dernière commande
!?profile //La dernière commande contenant le mot "profile"

—————————————————————————————

6 consoles virtuelles, dont l’accès depuis l’interface graphique se fait avec les combinaisons de touches suivantes Ctrl+ALT+Fn ou
n est un chiffre de 1 à 6.

Depuis une console virtuelle, vous pouvez passer dans une autre avec la combinaison ALT+Fn, (avec n de 1 à 6).
Pour revenir en mode graphique depuis une console virtuelle, faites ALT+F7.
————————————————————————————–

Make :
Error 127
means one of two things:

  1. file not found: the path you’re using is incorrect. double check that the program is actually in your $PATH, or in this case, the relative path is correct — remember that the current working directory for a random terminal might not be the same for the IDE you’re using. it might be better to just use an absolute path instead.
  2. ldso is not found: you’re using a pre-compiled binary and it wants an interpreter that isn’t on your system. maybe you’re using an x86_64 (64-bit) distro, but the prebuilt is for x86 (32-bit). you can determine whether this is the answer by opening a terminal and attempting to execute it directly. or by running file -L on /bin/sh (to get your default/native format) and on the compiler itself (to see what format it is).

if the problem is (2), then you can solve it in a few diff ways:

  1. get a better binary. talk to the vendor that gave you the toolchain and ask them for one that doesn’t suck.
  2. see if your distro can install the multilib set of files. most x86_64 64-bit distros allow you to install x86 32-bit libraries in parallel.
  3. build your own cross-compiler using something like crosstool-ng.
  4. you could switch between an x86_64 & x86 install, but that seems a bit drastic ;).

Veeam agent linux sur ubuntu

1-Installation de l’agent veeam linux

 dpkg -i ./veeam-release* && apt-get update

2-creation du repertoire backup

 veeamconfig repository create --name Backup --location /media/data/test

lister les repertoires backup

 veeamconfig repository list 

Name ID Location Type Backup server
Backup {4939770e-9ab9-40e7-9998-bac778484078} /media/data/test local

2-Creation job filelevel

 veeamconfig job create filelevel --name jobtest1 --reponame Backup --includedirs /home/test/Documents 
 Job has been created successfully.

Info sur le job

 veeamconfig job info --name jobtest1 

Backup job
ID: {edc9a98f-06f0-4d0d-972b-716aa3027325}
Name: jobtest1
Repository ID: {4939770e-9ab9-40e7-9998-bac778484078}
Repository name: Backup
Creation time: 2017-12-13 08:49:06
Options:
Compression: Lz4
Max Points: 14
File system indexing is disabled
Objects for backup:
Include Directory: /home/test/Documents

Demarrage du job

 veeamconfig job start --name jobtest1 

Backup job has been started.
Session ID: [{6050632c-a0c1-46f7-837c-44599a7659ee}].
Logs stored in: [/var/log/veeam/Backup/jobtest1/Session20171213_085051{6050632
c-a0c1-46f7-837c-44599a7659ee}]

voir backup

 veeamconfig backup list 

Job name Backup ID Repository Created at
Predator-G3600 jobtest1 {64b90e30-a5b7-453f-ab05-f9a608269a96} Backup 2017-12-13 08:50

 veeamconfig backup show --id 64b90e30-a5b7-453f-ab05-f9a608269a96} 

Machine name: Predator-G3600 jobtest1
File-level backup
Backed up: /home/test/Documents

MONTAGE BACKUP

 veeamconfig backup mount --id 64b90e30-a5b7-453f-ab05-f9a608269a96 --mountdir /mnt/backup

Backup has been mounted.
Session ID: [{2e8ce07e-c0f9-4b3f-9e17-399e1924bee1}].
Logs stored in: [/var/log/veeam/Mount/Session20171213_090000{2e8ce07e-c0f9-4b3f-9e17-399e1924bee1}].

 ls -la /mnt/backup/FileLevelBackup_0/ 

total 28
drwxr-xr-x 4 root root 4096 déc. 13 08:51 .
drwxr-xr-x 3 root root 4096 déc. 13 09:00 ..
drwxr-xr-x 3 root root 4096 déc. 12 21:47 home
drwx——— 2 root root 16384 déc. 13 08:51 lost+found

EXPORT VHD d’un volume sauvegardé

 veeamconfig backup export --id 64b90e30-a5b7-453f-ab05-f9a608269a96 --outdir /media/DiskData/veeamvhd 

Export has been started.
Session ID: [{9f9c8425-7fc8-4dbb-bd25-844c0bf0aad8}].
Logs stored in: [/var/log/veeam/Export/Session20171213_090754{9f9c8425-7fc8-4dbb-bd25-844c0bf0aad8}].

voir process export

 veeamconfig session log --id 9f9c8425-7fc8-4dbb-bd25-844c0bf0aad8

Navigation au sein des articles