Browsing French translation

1954 of 2030 results
1954.

#!/bin/bash
####################################
#
# Backup to NFS mount script with
# grandfather-father-son rotation.
#
####################################

# What to backup.
backup_files="/home /var/spool/mail /etc /root /boot /opt"

# Where to backup to.
dest="/mnt/backup"

# Setup variables for the archive filename.
day=$(date +%A)
hostname=$(hostname -s)

# Find which week of the month 1-4 it is.
day_num=$(date +%d)
if (( $day_num <= 7 )); then
week_file="$hostname-week1.tgz"
elif (( $day_num > 7 && $day_num <= 14 )); then
week_file="$hostname-week2.tgz"
elif (( $day_num > 14 && $day_num <= 21 )); then
week_file="$hostname-week3.tgz"
elif (( $day_num > 21 && $day_num < 32 )); then
week_file="$hostname-week4.tgz"
fi

# Find if the Month is odd or even.
month_num=$(date +%m)
month=$(expr $month_num % 2)
if [ $month -eq 0 ]; then
month_file="$hostname-month2.tgz"
else
month_file="$hostname-month1.tgz"
fi

# Create archive filename.
if [ $day_num == 1 ]; then
[tab]archive_file=$month_file
elif [ $day != "Saturday" ]; then
archive_file="$hostname-$day.tgz"
else
[tab]archive_file=$week_file
fi

# Print start status message.
echo "Backuping up $backup_files to $dest/$archive_file"
date
echo

# Backup the files using tar.
tar czf $dest/$archive_file $backup_files

# Print end status message.
echo
echo "Backup finished"
date

# Long listing of files in $dest to check file sizes.
ls -lh $dest/
[tab] represents a tab character. Please write it exactly the same way, [tab], in your translation.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.

#!/bin/bash
####################################
#
# Script de sauvegarde vers un partage NFS
# Rotation grand-père - père - fils.
#
####################################

# Que sauvegarder
backup_files="/home /var/spool/mail /etc /root /boot /opt"

# Où sauvegarder
dest="/mnt/backup"

# Variables pour les noms de fichiers des archives
day=$(date +%A)
hostname=$(hostname -s)

# Quelle semaine (1-4) du mois sommes nous
day_num=$(date +%d)
if (($day_num <= 7)); then
week_file="$hostname-week1.tgz"
elif (($day_num > 7 && $day_num <= 14)); then
week_file="$hostname-week2.tgz"
elif (($day_num > 14 && $day_num <= 21)); then
week_file="$hostname-week3.tgz"
elif (($day_num > 21 && $day_num < 32)); then
week_file="$hostname-week4.tgz"
fi

# Mois pair/impair
month_num=$(date +%m)
month=$(expr $month_num % 2)
if [ $month -eq 0 ]; then
month_file="$hostname-month2.tgz"
else
month_file="$hostname-month1.tgz"
fi

# Création du nom de fichier de l'archive
if [ $day_num == 1 ]; then
[tab]archive_file=$month_file
elif [ $day[nbsp]!= "Saturday" ]; then
archive_file="$hostname-$day.tgz"
else
[tab]archive_file=$week_file
fi

# Affiche le message du début de sauvegarde
echo "sauvegarde de $backup_files vers $dest/$archive_file"
date
echo

# Utilisation de tar pour la sauvegarde
tar czf $dest/$archive_file $backup_files

# Affiche le message de fin de sauvegarde
echo
echo "Sauvegarde terminée"
date

# Long listing des fichiers dans $dest pour vérification de la taille des fichiers
ls -lh $dest/
Translated and reviewed by Bruno
1954 of 2030 results

This translation is managed by Ubuntu French Translators, assigned by Ubuntu Translators.

You are not logged in. Please log in to work on translations.