Search Results

Search: Posts Made By: strshel
3,414
Posted By strshel
DIR=/dir/$(date +%y%m) */ DIR, folder or...
DIR=/dir/$(date +%y%m) */ DIR, folder or directory create than get the following directory, $dir and get the date,,, i m not sure if thats possible

[ -d "$DIR" ] || mkdir "$DIR" if the directory...
3,414
Posted By strshel
ok thanks , i will try
ok thanks , i will try
3,414
Posted By strshel
#!/bin/bash DIR=/dir/$(date +%y%m) [ -d...
#!/bin/bash
DIR=/dir/$(date +%y%m)
[ -d "$DIR" ] || mkdir "$DIR"
for D in $@ # obtem os argumentos/get the arguments
do
cp /usr/home/backup**
if backup=null then

mkdir backup
...
1,602
Posted By strshel
script incomplete
#!/bin/bash
DIR=/dir/$(date +%y%m)
[ -d "$DIR" ] || mkdir "$DIR"
for D in $@ # obtem os argumentos
do
cp /usr/home/backup
if backup=null then

mkdir backup

done

How can I complete...
3,414
Posted By strshel
1) yes... ok a if condition... can you give a...
1) yes... ok a if condition... can you give a example, please, not the answer but a example... i need to do that today :(?

2) cp... ok...
backsave.sh

---------- Post updated at 01:11 PM...
3,414
Posted By strshel
vbe
ok..

what i need to is create a command than will do a save copy each directory at line prompt through home... that is what i not understand, i m new in shell script, to safe the copy of...
1,655
Posted By strshel
creating a safe script
#!/bin/bash
DIR=base/path/of/your/backup/dir/$(date +%y%m)
[ -d "$DIR" ] || mkdir "$DIR"
for D in $@ # gets the arguments of the command line
do
cp -av ~/"$D" "$DIR/$D"
done

the...
3,414
Posted By strshel
help on this command, creating ..
1. The problem statement, all variables and given/known data:


Description



Bsafe The command creates a backup directory of each month at the command line (arguments of the script). The...
1,554
Posted By strshel
I need to do a workhome, but i m new in script shell, someone can help with this..
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

Description...
1,904
Posted By strshel
I could be wrong, but that sounds a lot more like...
I could be wrong, but that sounds a lot more like homework than a task delegated by a boss.U are right, a could say nothing about, but thats true, a need some help, i just need understand some "...
1,904
Posted By strshel
I need to do a work to my job, but i m new in script shell, someone can help with this..
I need to do a work to my job, but i m new in script shell, someone can help with this.. :confused:


Description



Bsafe The command creates a backup directory of each month at the...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 12:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy