ssh da db yi yedeklemek.

0
Onaylı Üye
Üye
Katılım
6 Ekim 2006
Mesajlar
853
Tepki puanı
0
merhaba bir sitemin sql dosyası biraz büyük ve yedek alırken bilgisayarıma her defasında bağlantı kopuyor bunu ssh da bir dizine nasıl kayıt edebilirim daha sonra flashget le vs indirebilmek için.
 
0
Onaylı Üye
Üye
Katılım
7 Ocak 2006
Mesajlar
1,567
Tepki puanı
0
Aynı sorun bende de var ssh harici başka yöntemi varmıdır bunun? ssh yetkisi yok.
 
0
Onaylı Üye
Üye
Katılım
14 Şubat 2007
Mesajlar
20
Tepki puanı
0
Konum
Bursa
Bütün veritabanlarını yedeklemek için

Kod:
mysqldump --opt --user=root --password --all-databases | bzip2 -c
> /backup/mysql.sql.bz2

site1 veritabanını yedek almak için ;

Kod:
mysqldump --database site1 > site1.sql -u root -p

site1 ve site2 dblerini yedeklemek için

Kod:
mysqldump --database site1 site2 > site1vesite2.sql -u root -p

root yerine sizin kullanıcı adınızı yazmalısınız. Eğer root olarak erişebiliyorsanız böyle kalabilir.
 
Root
Root
İyinet Ekibi
Onaylı Üye
Katılım
2 Eylül 2002
Mesajlar
5,043
Tepki puanı
77
Konum
SEO
Oturdum yazdim

Bu mesaj uzerine oturdum sizin icin PHP de dosya parcalayan program yazdim.
Hayrini gorun. Windows da http://www.freebyte.com/hjsplit/ ile birlestirin.

Isteyen kisiler baslik kismi kalmak sarti ile bu kodu yayinlayabilirler.
 
Root
Root
İyinet Ekibi
Onaylı Üye
Katılım
2 Eylül 2002
Mesajlar
5,043
Tepki puanı
77
Konum
SEO
HJSplit uyumlu Dosya bolen PHP scriptin yenilenmis hali eklenmistir.
 
0
Onaylı Üye
Üye
Katılım
10 Mart 2008
Mesajlar
66
Tepki puanı
0
Im sorry i dont know the language used in the forum, but i do know english ... but im having problem with the php script of HJsplit which splits the files online. I have changed the paths but im unable to get it working. I have modified the script as under :


// Edit here (3 variables)
// ---------------------------
// File to split, is its not in the same folder with filesplit.php, full path is required.
$file = "http://desi-instincts.com/Games%20(Latest)%20(2007)/GtASa/GTA%20San%20Andreas.part01.exe";

// Target folder. Splitted files will be stored here. Original file never gets touched.
// Do not append slash! Make sure webserver has write permission on this folder.
$targetfolder = '/www/tmp';

// File size in Mb per piece. For a 200Mb file if piecesize=10 it will result with 20 x 10Mb files
$piecesize = 100;
 
0
Onaylı Üye
Üye
Katılım
12 Aralık 2004
Mesajlar
9,603
Tepki puanı
106
Konum
AZ
Is targetfolder writeable?
 
0
Onaylı Üye
Üye
Katılım
31 Mayıs 2007
Mesajlar
32
Tepki puanı
0
Konum
Hamburg
Burdaki script isini gorecektir kullandigim bir sistem cron ile birlite istediginiz saatlerde yedeginizi alabilirsiniz
 
0
Onaylı Üye
Üye
Katılım
10 Mart 2008
Mesajlar
66
Tepki puanı
0
Yes it is writable, i created a folder named "tmp" as declared in the script and then changed its permission to read, write as well as execute.
 
0
Onaylı Üye
Üye
Katılım
10 Mart 2008
Mesajlar
66
Tepki puanı
0
This is what it says :

Warning: fopen(http://desi-instincts.com/tmp/http:...) (2007)/GtASa/GTA San Andreas.part01.exe.001) [function.fopen]: failed to open stream: HTTP wrapper does not support writeable connections. in /mounted-storage/home90b/sub008/sc42254-ESFQ/www/filesplit.php on line 62
Splitting http://desi-instincts.com/Games (Latest) (2007)/GtASa/GTA San Andreas.part01.exe into 100 Mb files (last piece may be smaller in size) ...
http://desi-instincts.com/tmp/http:...) (2007)/GtASa/GTA San Andreas.part01.exe.001

Warning: fwrite(): supplied argument is not a valid stream resource in /mounted-storage/home90b/sub008/sc42254-ESFQ/www/filesplit.php on line 67
filesplit.php is unable to write to current folder.
I think it does not have write permission!
Try chmod +w folder
 
0
Onaylı Üye
Üye
Katılım
10 Mart 2008
Mesajlar
66
Tepki puanı
0
The above mentioned error arises when the contents of the filesplit.php is :

// Edit here (3 variables)
// ---------------------------
// File to split, is its not in the same folder with filesplit.php, full path is required.
$file = "http://desi-instincts.com/Games%20(Latest)%20(2007)/GtASa/GTA%20San%20Andreas.part01.exe";

// Target folder. Splitted files will be stored here. Original file never gets touched.
// Do not append slash! Make sure webserver has write permission on this folder.
$targetfolder = 'http://desi-instincts.com/tmp';

// File size in Mb per piece. For a 200Mb file if piecesize=10 it will result with 20 x 10Mb files
$piecesize = 100;
 
0
Onaylı Üye
Üye
Katılım
12 Aralık 2004
Mesajlar
9,603
Tepki puanı
106
Konum
AZ
I didnt write the script, but you can try the following and see if that helps.
Change the following to relative paths instead of URL.
Assuming your script is on the base path of desi-instincts.com

$file = "http://desi-instincts.com/Games%20(Latest)%20(2007)/GtASa/GTA%20San%20Andreas.part01.exe";

->

$file = "Games%20(Latest)%20(2007)/GtASa/GTA%20San%20Andreas.part01.exe";
 
0
Onaylı Üye
Üye
Katılım
12 Aralık 2004
Mesajlar
9,603
Tepki puanı
106
Konum
AZ
Yes. He may be more of assistance when he is online. Though i strongly think relative path would work.
 
0
Onaylı Üye
Üye
Katılım
12 Aralık 2004
Mesajlar
9,603
Tepki puanı
106
Konum
AZ
I checked it again, the problem is not the first directive, its the second one. You are trying to make a writable connection to an HTTP protocol. Thats why you are getting the error.

Change
$targetfolder = 'http://desi-instincts.com/tmp';
to

$targetfolder = 'tmp';
or
$targetfolder = '/mounted-storage/home90b/sub008/sc42254-ESFQ/www/tmp';
 
0
Onaylı Üye
Üye
Katılım
10 Mart 2008
Mesajlar
66
Tepki puanı
0
Well a very foolish question : hope he knows english .... he shud i guesss ??
 
0
Onaylı Üye
Üye
Katılım
10 Mart 2008
Mesajlar
66
Tepki puanı
0
so you mean the source file's path :

$file = "http://desi-instincts.com/Games%20(Latest)%20(2007)/GtASa/GTA%20San%20Andreas.part01.exe";

is ok right ??
 
Geri
Üst